поправка
This commit is contained in:
10
get_data.py
10
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 ""
|
||||
|
||||
Reference in New Issue
Block a user