File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed
Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,7 @@ def upload_video_to_project(
382382 annotation_status = annotation_status ,
383383 image_quality_in_editor = image_quality_in_editor
384384 )
385+
385386 filenames_base = [Path (f ).name for f in filenames [0 ]]
386387 return filenames_base
387388
Original file line number Diff line number Diff line change @@ -397,8 +397,8 @@ def _upload_images(
397397 thread .join ()
398398 finish_event .set ()
399399 tqdm_thread .join ()
400- not_uploaded = [str (f ) for f in not_upload for not_upload in couldnt_upload ]
401- uploaded = [str (f ) for f in upload for upload in uploaded ]
400+ not_uploaded = [str (f ) for s in couldnt_upload for f in s ]
401+ uploaded = [str (f ) for s in uploaded for f in s ]
402402 not_uploaded += images_to_skip
403403
404404 return (uploaded , not_uploaded , duplicate_images_names )
Original file line number Diff line number Diff line change @@ -20,13 +20,5 @@ def test_attach_image_urls():
2020 )
2121
2222 assert len (uploaded ) == 7
23- assert len (could_not_upload ) == 0
24- assert len (existing_images ) == 1
25-
26- uploaded , could_not_upload , existing_images = sa .attach_image_urls_to_project (
27- project , PATH_TO_URLS
28- )
29-
30- assert len (uploaded ) == 2
31- assert len (could_not_upload ) == 0
32- assert len (existing_images ) == 6
23+ assert len (could_not_upload ) == 1
24+ assert len (existing_images ) == 0
You can’t perform that action at this time.
0 commit comments