Spaces:
Running
Running
James McCool
commited on
Commit
·
f4cc261
1
Parent(s):
cfb234d
Okay, well that broke things, but this'll fix it.
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
|
@@ -116,6 +116,7 @@ def init_baselines(data_req: str):
|
|
| 116 |
'Passes', 'Alt Assists', 'FT Assists', 'Assists', 'Stl', 'Blk', 'Tov', 'PF', 'DD', 'TD', 'Fantasy', 'FD_Fantasy', 'FPPM',
|
| 117 |
'Rebound%', 'Assists/Pass', 'Touch_per_min', 'Fantasy/Touch', 'FD Fantasy/Touch', 'team_score', 'opp_score', 'spread'], axis=1)
|
| 118 |
game_rot = None
|
|
|
|
| 119 |
timestamp = gamelog_table['Date'].max()
|
| 120 |
elif data_req == 'all':
|
| 121 |
collection = db["gamelog"]
|
|
@@ -211,7 +212,7 @@ def init_baselines(data_req: str):
|
|
| 211 |
except Exception:
|
| 212 |
pass # Silently continue if stint stats unavailable
|
| 213 |
|
| 214 |
-
return gamelog_table, game_rot, stint_stats.head(10)
|
| 215 |
|
| 216 |
@st.cache_data(show_spinner=False)
|
| 217 |
def seasonlong_build(data_sample):
|
|
|
|
| 116 |
'Passes', 'Alt Assists', 'FT Assists', 'Assists', 'Stl', 'Blk', 'Tov', 'PF', 'DD', 'TD', 'Fantasy', 'FD_Fantasy', 'FPPM',
|
| 117 |
'Rebound%', 'Assists/Pass', 'Touch_per_min', 'Fantasy/Touch', 'FD Fantasy/Touch', 'team_score', 'opp_score', 'spread'], axis=1)
|
| 118 |
game_rot = None
|
| 119 |
+
stint_stats = None
|
| 120 |
timestamp = gamelog_table['Date'].max()
|
| 121 |
elif data_req == 'all':
|
| 122 |
collection = db["gamelog"]
|
|
|
|
| 212 |
except Exception:
|
| 213 |
pass # Silently continue if stint stats unavailable
|
| 214 |
|
| 215 |
+
return gamelog_table, game_rot, stint_stats.head(10), timestamp
|
| 216 |
|
| 217 |
@st.cache_data(show_spinner=False)
|
| 218 |
def seasonlong_build(data_sample):
|