Spaces:
Runtime error
Runtime error
James McCool
commited on
Commit
·
0216170
1
Parent(s):
296a57a
fixed date filter in rotations
Browse files
app.py
CHANGED
@@ -669,10 +669,10 @@ with tab5:
|
|
669 |
if game_rot_dates == 'Specific Dates':
|
670 |
game_rot_low_date = st.date_input('Min Date:', value=None, format="YYYY-MM-DD", key='game_rot_low_date')
|
671 |
if game_rot_low_date is not None:
|
672 |
-
game_rot_low_date = pd.to_datetime(
|
673 |
game_rot_high_date = st.date_input('Max Date:', value=None, format="YYYY-MM-DD", key='game_rot_high_date')
|
674 |
if game_rot_high_date is not None:
|
675 |
-
game_rot_high_date = pd.to_datetime(
|
676 |
elif game_rot_dates == 'All':
|
677 |
game_rot_low_date = gamelog_table['Date'].min()
|
678 |
game_rot_high_date = gamelog_table['Date'].max()
|
|
|
669 |
if game_rot_dates == 'Specific Dates':
|
670 |
game_rot_low_date = st.date_input('Min Date:', value=None, format="YYYY-MM-DD", key='game_rot_low_date')
|
671 |
if game_rot_low_date is not None:
|
672 |
+
game_rot_low_date = pd.to_datetime(game_rot_low_date).date()
|
673 |
game_rot_high_date = st.date_input('Max Date:', value=None, format="YYYY-MM-DD", key='game_rot_high_date')
|
674 |
if game_rot_high_date is not None:
|
675 |
+
game_rot_high_date = pd.to_datetime(game_rot_high_date).date()
|
676 |
elif game_rot_dates == 'All':
|
677 |
game_rot_low_date = gamelog_table['Date'].min()
|
678 |
game_rot_high_date = gamelog_table['Date'].max()
|