mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-03-21 17:46:40 -05:00
Escape blacking out third team players if there is no third team
This commit is contained in:
parent
9ea800fbb7
commit
1aa33ebb18
9
s3s.py
9
s3s.py
|
|
@ -817,10 +817,11 @@ def prepare_battle_result(battle, ismonitoring, isblackout, overview_data=None):
|
|||
player["name"] = None
|
||||
player["number"] = None
|
||||
player["splashtag_title"] = None
|
||||
for player in payload["third_team_players"]:
|
||||
player["name"] = None
|
||||
player["number"] = None
|
||||
player["splashtag_title"] = None
|
||||
if "third_team_players" in payload:
|
||||
for player in payload["third_team_players"]:
|
||||
player["name"] = None
|
||||
player["number"] = None
|
||||
player["splashtag_title"] = None
|
||||
|
||||
# fix battle json
|
||||
for player in battle["myTeam"]["players"]:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user