More efficient flat file list format and various UX improvements #3

Merged
leo merged 19 commits from major-upgrade into main 2023-11-12 23:20:40 +00:00
Showing only changes of commit 0be72827db - Show all commits

View File

@ -239,9 +239,7 @@ 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)):
f.write(chunk)
asyncio.run_coroutine_threadsafe(queue.put(chunk), loop).result() asyncio.run_coroutine_threadsafe(queue.put(chunk), loop).result()
except Exception: except Exception:
logging.exception("Error streaming ZIP") logging.exception("Error streaming ZIP")