From c0f2efefda9e4d041aca4520f36785ff710fbe24 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 19 Jun 2025 09:36:16 +0800 Subject: [PATCH] series_weapon_power_after --- s3s.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/s3s.py b/s3s.py index a1c3904..8648de4 100755 --- a/s3s.py +++ b/s3s.py @@ -677,6 +677,12 @@ def prepare_battle_result(battle, ismonitoring, isblackout, overview_data=None): except: # could be null in historical data pass + if not payload.get("bankara_power_after"): + try: + payload["series_weapon_power_after"] = battle["bankaraMatch"]["weaponPower"] + except: # could be null in historical data + pass + battle_id = base64.b64decode(battle["id"]).decode('utf-8') battle_id_mutated = battle_id.replace("BANKARA", "RECENT") # normalize the ID, make work with -M and -r