поправил турнирку

This commit is contained in:
2025-10-27 20:48:31 +03:00
parent b301f1e918
commit 97045a0f72
2 changed files with 32 additions and 35 deletions

View File

@@ -439,13 +439,13 @@ cached_referee = st.session_state.get("referee")
league_tag = None
if isinstance(cached_game_online, dict):
league_tag = (cached_game_online.get("league") or {}).get("tag")
print(cached_game_online.get("comp").get("name"))
comp_name = (cached_game_online.get("comp") or {}).get("name").replace(" ", "_")
if league_tag:
load_data_from_json(f"standings_{league_tag}_{comp_name}")
cached_standings = (
st.session_state.get(f"standings_{league_tag}_{comp_name}") if league_tag else None
)
load_data_from_json("scores_quarter")
cached_scores_quarter = st.session_state.get("scores_quarter")