WebHost: Use expected APPlayerContainer manifest location directly when ingesting them #4754

This commit is contained in:
qwint
2025-06-02 10:53:57 -05:00
committed by GitHub
parent 8f68bb342d
commit cabde313b5

View File

@@ -119,9 +119,9 @@ def upload_zip_to_db(zfile: zipfile.ZipFile, owner=None, meta={"race": False}, s
# AP Container
elif handler:
data = zfile.open(file, "r").read()
patch = handler(BytesIO(data))
patch.read()
files[patch.player] = data
with zipfile.ZipFile(BytesIO(data)) as container:
player = json.loads(container.open("archipelago.json").read())["player"]
files[player] = data
# Spoiler
elif file.filename.endswith(".txt"):