Spaces:
Running
Running
James McCool commited on
Commit ·
6fa2bde
1
Parent(s): fd9f490
More debugging.
Browse files- src/streamlit_app.py +5 -0
src/streamlit_app.py
CHANGED
|
@@ -176,6 +176,7 @@ def init_baselines(data_req: str):
|
|
| 176 |
game_rot['GAME_DATE'] = pd.to_datetime(game_rot['GAME_DATE']).dt.date
|
| 177 |
|
| 178 |
# Query play-by-play stint stats
|
|
|
|
| 179 |
try:
|
| 180 |
collection = db["playbyplay_stints"]
|
| 181 |
cursor = collection.find()
|
|
@@ -233,9 +234,13 @@ def init_baselines(data_req: str):
|
|
| 233 |
if col in game_rot.columns:
|
| 234 |
game_rot[col] = game_rot[col].fillna(0)
|
| 235 |
except Exception as e:
|
|
|
|
| 236 |
print(f"ERROR loading stint stats: {e}")
|
| 237 |
import traceback
|
| 238 |
traceback.print_exc()
|
|
|
|
|
|
|
|
|
|
| 239 |
|
| 240 |
return gamelog_table, game_rot, timestamp
|
| 241 |
|
|
|
|
| 176 |
game_rot['GAME_DATE'] = pd.to_datetime(game_rot['GAME_DATE']).dt.date
|
| 177 |
|
| 178 |
# Query play-by-play stint stats
|
| 179 |
+
print("DEBUG: ===== ATTEMPTING TO LOAD STINT STATS =====")
|
| 180 |
try:
|
| 181 |
collection = db["playbyplay_stints"]
|
| 182 |
cursor = collection.find()
|
|
|
|
| 234 |
if col in game_rot.columns:
|
| 235 |
game_rot[col] = game_rot[col].fillna(0)
|
| 236 |
except Exception as e:
|
| 237 |
+
print(f"DEBUG: ===== EXCEPTION IN STINT STATS =====")
|
| 238 |
print(f"ERROR loading stint stats: {e}")
|
| 239 |
import traceback
|
| 240 |
traceback.print_exc()
|
| 241 |
+
print(f"DEBUG: ===== END EXCEPTION =====")
|
| 242 |
+
|
| 243 |
+
print(f"DEBUG: ===== STINT STATS SECTION COMPLETE =====")
|
| 244 |
|
| 245 |
return gamelog_table, game_rot, timestamp
|
| 246 |
|