Skip to content

Commit 56aa249

Browse files
committed
fix: file archives created for downloading are now compressed
1 parent 72d0d7f commit 56aa249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

viewer/download_structures.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def _create_structures_zip(target, zip_contents, file_url, original_search, host
469469
)
470470
logger.info('combined_sdf_file=%s', combined_sdf_file)
471471

472-
with zipfile.ZipFile(file_url, 'w') as ziparchive:
472+
with zipfile.ZipFile(file_url, 'w', zipfile.ZIP_DEFLATED) as ziparchive:
473473
# Read through zip_contents to compile the file
474474
errors += _protein_files_zip(zip_contents, ziparchive, error_file)
475475
if errors > 0:

0 commit comments

Comments
 (0)