Skip to content

Commit e27445d

Browse files
authored
Merge pull request #249 from superannotateai/sdk_upload_fix
Sdk upload fix
2 parents ffac18a + 40fdbf3 commit e27445d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ def __init__(
15811581
project: ProjectEntity,
15821582
folder: FolderEntity,
15831583
backend_service: SuerannotateServiceProvider,
1584-
settings: BaseManageableRepository,
1584+
settings: List[ProjectSettingEntity],
15851585
s3_repo,
15861586
image_urls: List[str],
15871587
image_names: List[str] = None,
@@ -1600,6 +1600,7 @@ def __init__(
16001600
self._settings = settings
16011601
self._auth_data = None
16021602

1603+
16031604
@property
16041605
def auth_data(self):
16051606
if not self._auth_data:
@@ -1745,6 +1746,7 @@ def execute(self):
17451746
image.entity for image in images_to_upload[i : i + 100]
17461747
],
17471748
annotation_status=self._annotation_status,
1749+
upload_state_code=constances.UploadState.BASIC.value
17481750
).execute()
17491751
if response.errors:
17501752
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,

src/superannotate/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.2.1b1"
1+
__version__ = "4.2.1"

0 commit comments

Comments
 (0)