mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-09-13 04:55:30 -05:00
Escape blacking out third team players if there is no third team
This commit is contained in:
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"]:
|
||||
|
||||
Reference in New Issue
Block a user