James McCool
commited on
Commit
·
8a1f473
1
Parent(s):
299f85a
Filter out today's date from the date selection in app.py
Browse files- Updated the date selection logic to exclude today's date from the available options, enhancing user experience by preventing selection of the current date.
- Maintained existing functionality while improving the relevance of date choices for users.
app.py
CHANGED
@@ -62,6 +62,7 @@ with tab1:
|
|
62 |
|
63 |
with date_options:
|
64 |
date_list = curr_info['Date'].sort_values(ascending=False).unique()
|
|
|
65 |
date_select = st.selectbox("Select Date", date_list, key='date_select')
|
66 |
|
67 |
name_parse = curr_info[curr_info['Date'] == date_select]['Contest Name'].reset_index(drop=True)
|
|
|
62 |
|
63 |
with date_options:
|
64 |
date_list = curr_info['Date'].sort_values(ascending=False).unique()
|
65 |
+
date_list = date_list[date_list != pd.Timestamp.today().strftime('%Y-%m-%d')]
|
66 |
date_select = st.selectbox("Select Date", date_list, key='date_select')
|
67 |
|
68 |
name_parse = curr_info[curr_info['Date'] == date_select]['Contest Name'].reset_index(drop=True)
|