Skip to content

Commit

Permalink
fix: closed data download between 100 MB and 1 GB
Browse files Browse the repository at this point in the history
  • Loading branch information
rdahis committed Nov 29, 2024
1 parent 6097717 commit 72959d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/apps/api/v1/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,11 @@ def contains_closed_data(self):
closed_data = True
break

# Check if uncompressed file size is above 1 GB
if table.uncompressed_file_size and table.uncompressed_file_size > 1000000000:
# Check if uncompressed file size is between 100 MB and 1 GB
if (table.uncompressed_file_size and
table.uncompressed_file_size > 100000000 and
table.uncompressed_file_size <= 1000000000
):
closed_data = True
break

Expand Down

0 comments on commit 72959d4

Please sign in to comment.