Merge pull request #183 from gecko655/hotfix-post-rengo

Use "rengo" keyword to upload triumvirate "オカシラ連合" salmonrun result
This commit is contained in:
eli 2024-06-08 15:22:12 +09:00 committed by GitHub
commit cccfb24a02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
s3s.py
View File

@ -885,6 +885,8 @@ def prepare_job_result(job, ismonitoring, isblackout, overview_data=None, prevre
if job["bossResult"]:
try:
payload["king_salmonid"] = utils.b64d(job["bossResult"]["boss"]["id"])
if payload["king_salmonid"] == 30:
payload["king_salmonid"] = "rengo"
except KeyError:
print("Could not send unsupported King Salmonid data to stat.ink. You may want to delete & re-upload this job later.")