mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-07-27 21:27:52 -05:00
clean up
This commit is contained in:
parent
b9db1f41da
commit
9025fdeefb
10
s3s.py
10
s3s.py
|
|
@ -586,12 +586,10 @@ def prepare_battle_result(battle, ismonitoring, overview_data=None):
|
|||
|
||||
full_rank = re.split('([0-9]+)', child["udemae"].lower())
|
||||
payload["rank_before"] = full_rank[0]
|
||||
|
||||
if len(full_rank) > 1:
|
||||
s_plus = True
|
||||
s_plus_before = len(full_rank) > 1 #True if "before" rank is s+
|
||||
|
||||
if s_plus_before:
|
||||
payload["rank_before_s_plus"] = int(full_rank[1])
|
||||
else:
|
||||
s_plus = False
|
||||
|
||||
# anarchy battle (series) - not open
|
||||
if "bankaraMatchChallenge" in parent and parent["bankaraMatchChallenge"] is not None:
|
||||
|
|
@ -607,7 +605,7 @@ def prepare_battle_result(battle, ismonitoring, overview_data=None):
|
|||
|
||||
if parent["bankaraMatchChallenge"]["udemaeAfter"] is None:
|
||||
payload["rank_after"] = payload["rank_before"]
|
||||
if s_plus:
|
||||
if s_plus_before:
|
||||
payload["rank_after_s_plus"] = payload["rank_before_s_plus"]
|
||||
else:
|
||||
if idx != 0:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user