Remove test.zip generation
This commit is contained in:
parent
88aca511e7
commit
0be72827db
|
@ -239,10 +239,8 @@ async def zip_download(req, keys, zipfile, ext):
|
||||||
|
|
||||||
def worker():
|
def worker():
|
||||||
try:
|
try:
|
||||||
with open("test2.zip", "wb") as f:
|
for chunk in stream_zip(local_files(files)):
|
||||||
for chunk in stream_zip(local_files(files)):
|
asyncio.run_coroutine_threadsafe(queue.put(chunk), loop).result()
|
||||||
f.write(chunk)
|
|
||||||
asyncio.run_coroutine_threadsafe(queue.put(chunk), loop).result()
|
|
||||||
except Exception:
|
except Exception:
|
||||||
logging.exception("Error streaming ZIP")
|
logging.exception("Error streaming ZIP")
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue
Block a user