Skip to content

Commit d0b02b4

Browse files
committed
Remove unused code
1 parent aa4e643 commit d0b02b4

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

superannotate/db/projects.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
import tempfile
1010
import threading
1111
import time
12+
import uuid
1213
from os.path import basename
1314
from pathlib import Path
1415
from urllib.parse import urlparse
15-
import uuid
1616

1717
import boto3
1818
import cv2
@@ -1475,24 +1475,6 @@ def __tqdm_thread_upload_annotations(
14751475
break
14761476

14771477

1478-
def __tqdm_thread_upload_preannotations(
1479-
total_num, uploaded, couldnt_upload, finish_event
1480-
):
1481-
with tqdm(total=total_num) as pbar:
1482-
while True:
1483-
finished = finish_event.wait(_TIME_TO_UPDATE_IN_TQDM)
1484-
if not finished:
1485-
sum_all = 0
1486-
for i in couldnt_upload:
1487-
sum_all += len(i)
1488-
for i in uploaded:
1489-
sum_all += len(i)
1490-
pbar.update(sum_all - pbar.n)
1491-
else:
1492-
pbar.update(total_num - pbar.n)
1493-
break
1494-
1495-
14961478
def upload_preannotations_from_folder_to_project(
14971479
project, folder_path, from_s3_bucket=None, recursive_subfolders=False
14981480
):

0 commit comments

Comments
 (0)