Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
Marishka17 committed Jun 26, 2024
1 parent ad87af0 commit 4493302
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cvat/apps/engine/background_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def export(self):
rq_job = queue.fetch_job(rq_id)

if rq_job:
response = self.handle_rq_job(rq_job)
response = self.handle_rq_job(rq_job, queue)
if response:
return response

Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/engine/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3019,7 +3019,7 @@ def _import_annotations(request, rq_id_template, rq_func, db_obj, format_name,
failure_ttl=settings.IMPORT_CACHE_FAILED_TTL.total_seconds()
)

handle_dataset_import(db_obj, format_name=format_name, cloud_storage_id=location_conf.get('storage_id'))
handle_dataset_import(db_obj, format_name=format_name, cloud_storage_id=db_storage.id if db_storage else None)

serializer = RqIdSerializer(data={'rq_id': rq_id})
serializer.is_valid(raise_exception=True)
Expand Down

0 comments on commit 4493302

Please sign in to comment.