From 56aa249d6ffc943f7b152fbd112b70ba993ae979 Mon Sep 17 00:00:00 2001 From: Kalev Takkis Date: Fri, 12 Jan 2024 12:47:41 +0000 Subject: [PATCH] fix: file archives created for downloading are now compressed --- viewer/download_structures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer/download_structures.py b/viewer/download_structures.py index 59a27cac..13e940e3 100644 --- a/viewer/download_structures.py +++ b/viewer/download_structures.py @@ -469,7 +469,7 @@ def _create_structures_zip(target, zip_contents, file_url, original_search, host ) logger.info('combined_sdf_file=%s', combined_sdf_file) - with zipfile.ZipFile(file_url, 'w') as ziparchive: + with zipfile.ZipFile(file_url, 'w', zipfile.ZIP_DEFLATED) as ziparchive: # Read through zip_contents to compile the file errors += _protein_files_zip(zip_contents, ziparchive, error_file) if errors > 0: