From: Claromes Date: Thu, 28 Sep 2023 05:47:33 +0000 (-0300) Subject: update streamlit version, add filter by year, add filter by range size X-Git-Url: https://git.claromes.com/?a=commitdiff_plain;h=a11978916d05569fded473b83631c2162d38f11c;p=waybacktweets.git update streamlit version, add filter by year, add filter by range size --- diff --git a/README.md b/README.md index b9853f9..a8352e4 100644 --- a/README.md +++ b/README.md @@ -58,12 +58,12 @@ Streamlit will be served at http://localhost:8501 - [x] Review data cache - [x] Changelog - [ ] Prevent duplicate URLs -- [ ] Range size defined by user +- [x] Range size defined by user - [ ] `parse_links` exception - [ ] Add current page to page title - [ ] Parse MIME type `warc/revisit` - [ ] Parse MIME type `text/plain` -- [ ] Filter by period/datetime +- [x] Filter by period/datetime - [ ] Apply filters by API endpoints - [ ] Add contributing guidelines diff --git a/app.py b/app.py index f1e6e8f..6bbb22c 100644 --- a/app.py +++ b/app.py @@ -70,6 +70,9 @@ if 'update_component' not in st.session_state: if 'offset' not in st.session_state: st.session_state.offset = 0 +if 'date_created' not in st.session_state: + st.session_state.date_created = (2006, year) + def scroll_into_view(): js = '''