Skip to content

Commit

Permalink
fixup!: fix bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
rgraber committed Jan 8, 2025
1 parent 938f3a6 commit dad2453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kobo/apps/openrosa/apps/logger/utils/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def set_instance_validation_statuses(
# Update Postgres & Mongo
records_queryset = Instance.objects.filter(**postgres_query)
validation_status = new_validation_status.get('label', 'None')
if getattr(get_current_request(), 'instances', None) is not None:
if get_current_request() is not None:
get_current_request().instances = {
record['id']: SubmissionUpdate(
username=record['user__username'],
Expand Down

0 comments on commit dad2453

Please sign in to comment.