From ff434a6065d61016e38d2a7239c0a5ee2763d967 Mon Sep 17 00:00:00 2001 From: Claromes Date: Tue, 16 Jul 2024 21:51:47 -0300 Subject: [PATCH] update app - allow empty date filter --- app/app.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/app.py b/app/app.py index a608dad..6e68929 100644 --- a/app/app.py +++ b/app/app.py @@ -251,6 +251,13 @@ def scroll_page(): collapse = "urlkey" matchtype = "prefix" + start_timestamp = None + end_timestamp = None + + if st.session_state.archived_timestamp_filter: + start_timestamp = st.session_state.archived_timestamp_filter[0] + end_timestamp = st.session_state.archived_timestamp_filter[1] + try: with st.spinner( f"Waybacking @{st.session_state.current_username}'s archived tweets" @@ -258,8 +265,8 @@ def scroll_page(): wayback_tweets = wayback_tweets( st.session_state.current_username, collapse, - st.session_state.archived_timestamp_filter[0], - st.session_state.archived_timestamp_filter[1], + start_timestamp, + end_timestamp, limit, offset, matchtype,