поправка

This commit is contained in:
2025-11-01 13:09:04 +03:00
parent 1fb9e62379
commit 349b0267a8

View File

@@ -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 ""