Skip to content

Commit

Permalink
Rename the counting variable to not mention "draft"
Browse files Browse the repository at this point in the history
  • Loading branch information
waxlamp committed Sep 21, 2024
1 parent 002466a commit 77c4d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dandiapi/api/views/dandiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ def get_queryset(self):
.annotate(asset_count=Count('assets'))[:1]
)
queryset = queryset.annotate(
draft_asset_count=Subquery(most_recent_version.values('asset_count'))
asset_count=Subquery(most_recent_version.values('asset_count'))
)
queryset = queryset.filter(draft_asset_count__gt=0)
queryset = queryset.filter(asset_count__gt=0)
if not show_embargoed:
queryset = queryset.filter(embargo_status='OPEN')
return queryset
Expand Down

0 comments on commit 77c4d09

Please sign in to comment.