Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2122,12 +2122,14 @@ def render_dashboard() -> None:
|
|
| 2122 |
|
| 2123 |
st.write("Opportunity model debug")
|
| 2124 |
|
| 2125 |
-
|
| 2126 |
-
|
|
|
|
|
|
|
| 2127 |
else:
|
| 2128 |
opportunity_debug_rows: list[dict] = []
|
| 2129 |
|
| 2130 |
-
for _, live_row in
|
| 2131 |
game = live_row.to_dict()
|
| 2132 |
|
| 2133 |
try:
|
|
|
|
| 2122 |
|
| 2123 |
st.write("Opportunity model debug")
|
| 2124 |
|
| 2125 |
+
prepared_live_games_df = build_prepared_live_games_df(live_games)
|
| 2126 |
+
|
| 2127 |
+
if prepared_live_games_df is None or prepared_live_games_df.empty:
|
| 2128 |
+
st.info("No prepared live games available for opportunity-model debug.")
|
| 2129 |
else:
|
| 2130 |
opportunity_debug_rows: list[dict] = []
|
| 2131 |
|
| 2132 |
+
for _, live_row in prepared_live_games_df.iterrows():
|
| 2133 |
game = live_row.to_dict()
|
| 2134 |
|
| 2135 |
try:
|