Skip to content

Commit

Permalink
fix: exclude datasets under review from update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna committed Feb 14, 2024
1 parent 67dd2f9 commit ef12b03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bd_api/apps/api/v1/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ def get_uncompressed_file_size(table: Table, bq_table: GBQTable) -> int | None:
tables = (
Table.objects
.exclude(status__slug__in=["under_review"])
.exclude(dataset__status__slug__in=["under_review"])
.order_by("updated_at")
.all()
) # fmt: skip
else:
tables = (
Table.objects.filter(pk__in=table_pks)
.exclude(status__slug__in=["under_review"])
.exclude(dataset__status__slug__in=["under_review"])
.order_by("updated_at")
.all()
)
Expand Down

0 comments on commit ef12b03

Please sign in to comment.