Skip to content

Commit 40fdbf3

Browse files
Vaghinak BasentsyanVaghinak Basentsyan
authored andcommitted
Fix upload from public url.
1 parent e83e1bc commit 40fdbf3

File tree

3 files changed

+4
-32
lines changed

3 files changed

+4
-32
lines changed

.github/workflows/python-tests.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ def __init__(
15791579
project: ProjectEntity,
15801580
folder: FolderEntity,
15811581
backend_service: SuerannotateServiceProvider,
1582-
settings: BaseManageableRepository,
1582+
settings: List[ProjectSettingEntity],
15831583
s3_repo,
15841584
image_urls: List[str],
15851585
image_names: List[str] = None,
@@ -1598,6 +1598,7 @@ def __init__(
15981598
self._settings = settings
15991599
self._auth_data = None
16001600

1601+
16011602
@property
16021603
def auth_data(self):
16031604
if not self._auth_data:
@@ -1743,6 +1744,7 @@ def execute(self):
17431744
image.entity for image in images_to_upload[i : i + 100]
17441745
],
17451746
annotation_status=self._annotation_status,
1747+
upload_state_code=constances.UploadState.BASIC.value
17461748
).execute()
17471749
if response.errors:
17481750
continue

src/superannotate/lib/infrastructure/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def upload_images_from_public_urls_to_project(
438438
backend_service=self._backend_client,
439439
settings=ProjectSettingsRepository(
440440
service=self._backend_client, project=project
441-
),
441+
).get_all(),
442442
s3_repo=self.s3_repo,
443443
image_quality_in_editor=image_quality_in_editor,
444444
annotation_status=annotation_status,

0 commit comments

Comments
 (0)