Skip to content

Commit

Permalink
Merge pull request #2517 from onaio/update-var-assignment
Browse files Browse the repository at this point in the history
Check length of paginated instances in briefcase viewset
  • Loading branch information
KipSigei authored Nov 23, 2023
2 parents 8cdb3b3 + 101e72e commit ca5f796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onadata/apps/api/viewsets/briefcase_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def filter_queryset(self, queryset):
try:
paginated_instances = instances[:num_entries]
# trigger a database call
_ = len(instances)
_ = len(paginated_instances)
instances = paginated_instances
except OperationalError:
instances = _query_optimization_fence(instances, num_entries)
Expand Down

0 comments on commit ca5f796

Please sign in to comment.