Skip to content

Commit

Permalink
Fixed exports not working
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed May 22, 2020
1 parent 72eb094 commit 2c7b11b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/workers/tasks/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def export_annotations(task_id, dataset_id, categories):

total_annotations = db_annotations.count()
total_images = db_images.count()
for image in fix_ids(db_images):
for image in db_images:
image = fix_ids(image)

progress += 1
task.set_progress((progress / total_items) * 100, socket=socket)
Expand All @@ -82,7 +83,7 @@ def export_annotations(task_id, dataset_id, categories):
annotations = fix_ids(annotations)

if len(annotations) == 0:
break
continue

num_annotations = 0
for annotation in annotations:
Expand Down

0 comments on commit 2c7b11b

Please sign in to comment.