override default shortname for new stage

This commit is contained in:
eli fessler 2023-08-31 22:06:29 -10:00
parent c2b487829a
commit 16a7351a58

2
s3s.py
View File

@ -1543,6 +1543,8 @@ def check_for_new_results(which, cached_battles, cached_jobs, battle_wins, battl
shortname = stagename.split(" ")[-1]
if shortname == "d'Alfonsino": # lol franch
shortname = "Museum"
elif shortname == "Co.":
shortname = "Cargo"
endtime = utils.epoch_time(result["data"]["vsHistoryDetail"]["playedTime"]) + \
result["data"]["vsHistoryDetail"]["duration"]
dt = datetime.datetime.fromtimestamp(endtime).strftime('%I:%M:%S %p').lstrip("0")