Skip to content

Commit e184b86

Browse files
committed
Fix progress bar
1 parent ddca927 commit e184b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/superannotate/lib/core/usecases/annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ async def _upload_small_annotations(self, chunk) -> Report:
329329
except Exception: # noqa
330330
failed_annotations.extend([i.name for i in chunk])
331331
finally:
332+
print(1111, len(chunk))
332333
self.reporter.update_progress(len(chunk))
333334
return Report(
334335
failed_annotations, missing_classes, missing_attr_groups, missing_attrs
@@ -430,7 +431,6 @@ async def distribute_queues(self, items_to_upload: list):
430431
self.reporter.update_progress()
431432
data[idx][1] = True
432433
processed_count += 1
433-
self.reporter.update_progress()
434434
data[idx][1] = True
435435
processed_count += 1
436436
self._big_files_queue.put_nowait(None)

0 commit comments

Comments
 (0)