Spaces:
Sleeping
Sleeping
Jon Solow
commited on
Commit
·
908a575
1
Parent(s):
356f29f
Use utc to fix bug in load time
Browse files
src/pages/4_PracticeReports.py
CHANGED
@@ -14,7 +14,7 @@ def load_data():
|
|
14 |
position_list = list(data.Position.unique())
|
15 |
status_list = list(data.game_status.unique())
|
16 |
last_practice_day_list = list(data["Last Practice Day"].unique())
|
17 |
-
data_load_time_str = datetime.datetime.
|
18 |
return data, teams_list, position_list, status_list, last_practice_day_list, data_load_time_str
|
19 |
|
20 |
|
@@ -24,7 +24,7 @@ def get_page():
|
|
24 |
get_authorization_button()
|
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}
|
28 |
teams_selected = st.multiselect("Team:", teams_list, placeholder="Select a team to filter") or teams_list
|
29 |
positions_selected = (
|
30 |
st.multiselect("Position:", position_list, placeholder="Select a position to filter") or position_list
|
|
|
14 |
position_list = list(data.Position.unique())
|
15 |
status_list = list(data.game_status.unique())
|
16 |
last_practice_day_list = list(data["Last Practice Day"].unique())
|
17 |
+
data_load_time_str = datetime.datetime.utcnow().strftime("%m/%d/%Y %I:%M %p")
|
18 |
return data, teams_list, position_list, status_list, last_practice_day_list, data_load_time_str
|
19 |
|
20 |
|
|
|
24 |
get_authorization_button()
|
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
|
29 |
positions_selected = (
|
30 |
st.multiselect("Position:", position_list, placeholder="Select a position to filter") or position_list
|