mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 04:01:32 -06:00
WebHost: Use expected APPlayerContainer manifest location directly when ingesting them #4754
This commit is contained in:
@@ -119,9 +119,9 @@ def upload_zip_to_db(zfile: zipfile.ZipFile, owner=None, meta={"race": False}, s
|
|||||||
# AP Container
|
# AP Container
|
||||||
elif handler:
|
elif handler:
|
||||||
data = zfile.open(file, "r").read()
|
data = zfile.open(file, "r").read()
|
||||||
patch = handler(BytesIO(data))
|
with zipfile.ZipFile(BytesIO(data)) as container:
|
||||||
patch.read()
|
player = json.loads(container.open("archipelago.json").read())["player"]
|
||||||
files[patch.player] = data
|
files[player] = data
|
||||||
|
|
||||||
# Spoiler
|
# Spoiler
|
||||||
elif file.filename.endswith(".txt"):
|
elif file.filename.endswith(".txt"):
|
||||||
|
Reference in New Issue
Block a user