Skip to content

Commit 2c7b11b

Browse files
committed
Fixed exports not working
1 parent 72eb094 commit 2c7b11b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/workers/tasks/data.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def export_annotations(task_id, dataset_id, categories):
7272

7373
total_annotations = db_annotations.count()
7474
total_images = db_images.count()
75-
for image in fix_ids(db_images):
75+
for image in db_images:
76+
image = fix_ids(image)
7677

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

8485
if len(annotations) == 0:
85-
break
86+
continue
8687

8788
num_annotations = 0
8889
for annotation in annotations:

0 commit comments

Comments
 (0)