WebHost: check uploads against zip magic number instead of .zip

This commit is contained in:
Fabian Dill
2022-01-01 17:18:48 +01:00
parent 93ac018400
commit f8893a7ed3
4 changed files with 8 additions and 8 deletions

View File

@@ -252,7 +252,7 @@ def get_static_room_data(room: Room):
result = _multidata_cache.get(room.seed.id, None)
if result:
return result
multidata = Context._decompress(room.seed.multidata)
multidata = Context.decompress(room.seed.multidata)
# in > 100 players this can take a bit of time and is the main reason for the cache
locations: Dict[int, Dict[int, Tuple[int, int]]] = multidata['locations']
names: Dict[int, Dict[int, str]] = multidata["names"]