поправил турнирку
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user