From a11978916d05569fded473b83631c2162d38f11c Mon Sep 17 00:00:00 2001 From: Claromes Date: Thu, 28 Sep 2023 02:47:33 -0300 Subject: [PATCH] update streamlit version, add filter by year, add filter by range size --- README.md | 4 ++-- app.py | 55 +++++++++++++++++++++++++----------------------- requirements.txt | 2 +- 3 files changed, 32 insertions(+), 29 deletions(-) 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 = '''