Spaces:
Sleeping
Sleeping
Jon Solow
commited on
Commit
·
c30e41f
1
Parent(s):
7c974e7
Refresh data if refresh param included
Browse files
src/pages/80_Maximum_Roster_Strategy.py
CHANGED
@@ -130,6 +130,8 @@ After the game, players will be colored by outcome: Drop (Red), Light Hold (Yell
|
|
130 |
position = st.selectbox(label="Position", options=POSITION_OPTIONS, index=0)
|
131 |
with week_select:
|
132 |
week = st.selectbox(label="Week", options=list(range(MAXIMUM_WEEK, MINIMUM_WEEK - 1, -1)), index=0)
|
|
|
|
|
133 |
df_mrs, all_time_slots_df = load_data()
|
134 |
df_mrs = df_mrs[df_mrs["Week"] == week]
|
135 |
current_week_timeslots = (
|
|
|
130 |
position = st.selectbox(label="Position", options=POSITION_OPTIONS, index=0)
|
131 |
with week_select:
|
132 |
week = st.selectbox(label="Week", options=list(range(MAXIMUM_WEEK, MINIMUM_WEEK - 1, -1)), index=0)
|
133 |
+
if st.experimental_get_query_params().get("refresh"):
|
134 |
+
st.cache_data.clear()
|
135 |
df_mrs, all_time_slots_df = load_data()
|
136 |
df_mrs = df_mrs[df_mrs["Week"] == week]
|
137 |
current_week_timeslots = (
|