Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro committed May 25, 2023
1 parent 06e5475 commit 2b6c310
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion cvat/apps/engine/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,6 @@ def _import(importer, request, queue, rq_id, Serializer, file_field_name, locati

if not rq_job:
org_id = getattr(request.iam_context['organization'], 'id', None)
fd = None
dependent_job = None

location = location_conf.get('location')
Expand Down
2 changes: 0 additions & 2 deletions cvat/apps/engine/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2326,7 +2326,6 @@ def _import_annotations(request, rq_id, rq_func, db_obj, format_name,
# If filename is specified we consider that file was uploaded via TUS, so it exists in filesystem
# Then we dont need to create temporary file
# Or filename specify key in cloud storage so we need to download file
fd = None
dependent_job = None
location = location_conf.get('location') if location_conf else Location.LOCAL

Expand Down Expand Up @@ -2517,7 +2516,6 @@ def _import_project_dataset(request, rq_id, rq_func, db_obj, format_name, filena
rq_job = queue.fetch_job(rq_id)

if not rq_job:
fd = None
dependent_job = None
location = location_conf.get('location') if location_conf else None
if not filename and location != Location.CLOUD_STORAGE:
Expand Down

0 comments on commit 2b6c310

Please sign in to comment.