Syntrex commited on
Commit
c57cbf4
·
verified ·
1 Parent(s): 5a63716

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -2122,12 +2122,14 @@ def render_dashboard() -> None:
2122
 
2123
  st.write("Opportunity model debug")
2124
 
2125
- if live_games is None or live_games.empty:
2126
- st.info("No live games available for opportunity model debug.")
 
 
2127
  else:
2128
  opportunity_debug_rows: list[dict] = []
2129
 
2130
- for _, live_row in live_games.iterrows():
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: