Jon Solow commited on
Commit
6d8d19f
·
1 Parent(s): 3bd0fa3

Add refresh data button

Browse files
Files changed (1) hide show
  1. src/pages/4_Practice_Reports.py +2 -0
src/pages/4_Practice_Reports.py CHANGED
@@ -23,6 +23,8 @@ def get_page():
23
  st.set_page_config(page_title=page_title, page_icon=DEFAULT_ICON, layout="wide")
24
  common_page_config()
25
  st.title(page_title)
 
 
26
  data, teams_list, position_list, status_list, last_practice_day_list, data_load_time_str = load_data()
27
  st.write(f"Data loaded as of: {data_load_time_str} UTC")
28
  teams_selected = st.multiselect("Team:", teams_list, placeholder="Select a team to filter") or teams_list
 
23
  st.set_page_config(page_title=page_title, page_icon=DEFAULT_ICON, layout="wide")
24
  common_page_config()
25
  st.title(page_title)
26
+ if st.button("Refresh Data"):
27
+ st.cache_data.clear()
28
  data, teams_list, position_list, status_list, last_practice_day_list, data_load_time_str = load_data()
29
  st.write(f"Data loaded as of: {data_load_time_str} UTC")
30
  teams_selected = st.multiselect("Team:", teams_list, placeholder="Select a team to filter") or teams_list