Skip to content

Commit

Permalink
fix: file archives created for downloading are now compressed
Browse files Browse the repository at this point in the history
  • Loading branch information
kaliif committed Jan 12, 2024
1 parent 72d0d7f commit 56aa249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viewer/download_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 56aa249

Please sign in to comment.