diff --git a/visual.py b/visual.py index 9f2f5a7..52913b6 100644 --- a/visual.py +++ b/visual.py @@ -465,7 +465,7 @@ cached_team_stats = st.session_state.get("team_stats") load_data_from_json("scores") cached_scores = st.session_state.get("scores") or [] # важно! -load_data_from_json("live_status") +load_data_from_json("api_live-status") cached_live_status = st.session_state.get("live_status") load_data_from_json("schedule") @@ -613,8 +613,8 @@ if isinstance(cached_game_online, dict): col5_1.metric("TimeOuts", len(timeout2)) if isinstance(cached_live_status, list) and cached_live_status: - foulsA = (cached_live_status[0] or {}).get("foulsA") - foulsB = (cached_live_status[0] or {}).get("foulsB") + foulsA = (cached_live_status["result"] or {}).get("foulsA") + foulsB = (cached_live_status["result"] or {}).get("foulsB") if foulsA is not None: col4_2.metric("Fouls", foulsA) if foulsB is not None: