avoid upload error by blanking out hacked grizzco weapons (#61)

This commit is contained in:
eli fessler
2022-10-25 20:40:44 -10:00
parent 1e2dfb4210
commit 6628d657d7

View File

@@ -105,9 +105,14 @@ def b64d(string):
thing_id = base64.b64decode(string).decode('utf-8')
thing_id = thing_id.replace("VsStage-", "")
thing_id = thing_id.replace("VsMode-", "")
thing_id = thing_id.replace("Weapon-", "")
thing_id = thing_id.replace("CoopStage-", "")
thing_id = thing_id.replace("CoopGrade-", "")
if "Weapon-" in thing_id:
thing_id = thing_id.replace("Weapon-", "")
if len(thing_id) == 5 and thing_id[:2] == "20": # grizzco weapon ID from a hacker
return ""
if thing_id[:15] == "VsHistoryDetail" or thing_id[:17] == "CoopHistoryDetail":
return thing_id # string
else: