James McCool
commited on
Commit
·
33dca61
1
Parent(s):
e13ecee
Fix date selection logic in app.py to ensure consistent formatting
Browse files- Added a line to replace hyphens in the selected date after the user makes a selection, ensuring the date format is consistent for further processing.
- This change enhances data handling and aligns with ongoing efforts to improve user experience within the application.
app.py
CHANGED
@@ -62,8 +62,9 @@ with tab1:
|
|
62 |
|
63 |
with col3:
|
64 |
date_select = st.selectbox("Select Date", curr_info['Date'].unique(), key='date_select')
|
65 |
-
|
66 |
name_parse = curr_info[curr_info['Date'] == date_select]['Contest Name']
|
|
|
67 |
with col4:
|
68 |
type_var = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_var')
|
69 |
st.write(date_select)
|
|
|
62 |
|
63 |
with col3:
|
64 |
date_select = st.selectbox("Select Date", curr_info['Date'].unique(), key='date_select')
|
65 |
+
|
66 |
name_parse = curr_info[curr_info['Date'] == date_select]['Contest Name']
|
67 |
+
date_select = date_select.replace('-', '')
|
68 |
with col4:
|
69 |
type_var = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_var')
|
70 |
st.write(date_select)
|