Skip to content

Commit

Permalink
Merge pull request #716 from basedosdados/dev
Browse files Browse the repository at this point in the history
development
  • Loading branch information
rdahis authored Nov 29, 2024
2 parents 37a337d + 265200a commit 14f54b7
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 14f54b7

Please sign in to comment.