diff --git a/get_data.py b/get_data.py index 9179634..23d9b3c 100644 --- a/get_data.py +++ b/get_data.py @@ -372,11 +372,7 @@ def results_consumer(): game["data"]["result"]["game"]["fullScore"] = payload["result"][ "fullScore" ] - game["data"]["result"]["game"]["score"] = payload["result"][ - "teams" - ][0]["total"]["points"] + ":" + payload["result"][ - "teams" - ][1]["total"]["points"] + game["data"]["result"]["game"]["score"] = f'{payload["result"]["teams"][0]["total"]["points"]}:{payload["result"]["teams"][1]["total"]["points"]}' for team in game["data"]["result"]["teams"]: if team["teamNumber"] != 0: box_team = [ @@ -621,8 +617,8 @@ def build_pretty_status_message(): game_info = result.get("game") or {} - team1_name = game_data["team1"]["name"] - team2_name = game_data["team2"]["name"] + team1_name = result["team1"]["name"] + team2_name = result["team2"]["name"] score_now = game_info.get("score") or "" full_score = game_info.get("fullScore") or ""