WebHost: remove duplicate zfile read
This commit is contained in:
parent
e0d6503590
commit
fbd5bfd382
|
@ -65,8 +65,8 @@ def upload_zip_to_db(zfile: zipfile.ZipFile, owner=None, meta={"race": False}, s
|
||||||
MultiServer.Context._decompress(multidata)
|
MultiServer.Context._decompress(multidata)
|
||||||
except:
|
except:
|
||||||
flash("Could not load multidata. File may be corrupted or incompatible.")
|
flash("Could not load multidata. File may be corrupted or incompatible.")
|
||||||
else:
|
multidata = None
|
||||||
multidata = zfile.open(file).read()
|
|
||||||
if multidata:
|
if multidata:
|
||||||
flush() # commit slots
|
flush() # commit slots
|
||||||
seed = Seed(multidata=multidata, spoiler=spoiler, slots=slots, owner=owner, meta=json.dumps(meta),
|
seed = Seed(multidata=multidata, spoiler=spoiler, slots=slots, owner=owner, meta=json.dumps(meta),
|
||||||
|
|
Loading…
Reference in New Issue