From 0be72827db960201caefde4e103e03faf196c055 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sun, 12 Nov 2023 19:40:05 +0000 Subject: [PATCH] Remove test.zip generation --- cista/app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cista/app.py b/cista/app.py index 2bf7e93..a2e643e 100644 --- a/cista/app.py +++ b/cista/app.py @@ -239,10 +239,8 @@ async def zip_download(req, keys, zipfile, ext): def worker(): try: - with open("test2.zip", "wb") as f: - for chunk in stream_zip(local_files(files)): - f.write(chunk) - asyncio.run_coroutine_threadsafe(queue.put(chunk), loop).result() + for chunk in stream_zip(local_files(files)): + asyncio.run_coroutine_threadsafe(queue.put(chunk), loop).result() except Exception: logging.exception("Error streaming ZIP") raise