Skip to content

Commit 9a28e03

Browse files
committed
fix uplaod query params
1 parent d180834 commit 9a28e03

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/superannotate/lib/infrastructure/services.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ def __init__(
8282
@property
8383
def assets_provider_url(self):
8484
if self.api_url != constance.BACKEND_URL:
85-
# return "https://sa-assets-provider.us-west-2.elasticbeanstalk.com/api/v1.01/"
86-
return "https://assets-provider.devsuperannotate.com/api/v1.01/"
85+
# return "http://ec2-18-237-224-179.us-west-2.compute.amazonaws.com:3009/api/v1.01/"
86+
return "https://sa-assets-provider.us-west-2.elasticbeanstalk.com/api/v1.01/"
87+
# return "https://assets-provider.devsuperannotate.com/api/v1.01/"
8788
return "https://assets-provider.superannotate.com/api/v1/"
8889

8990
@timed_lru_cache(seconds=360)
@@ -1398,7 +1399,6 @@ async def upload_annotations(
13981399
"team_id": team_id,
13991400
"project_id": project_id,
14001401
"folder_id": folder_id,
1401-
"image_names": list(items_name_file_map.keys()),
14021402
},
14031403
data=data
14041404
)

tests/integration/annotations/test_download_annotations.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ def folder_path(self):
2727

2828
@pytest.mark.flaky(reruns=3)
2929
def test_download_annotations(self):
30-
sa.upload_images_from_folder_to_project(
31-
self.PROJECT_NAME, self.folder_path, annotation_status="InProgress"
32-
)
30+
self._attach_items()
3331
sa.create_annotation_classes_from_classes_json(
3432
self.PROJECT_NAME, f"{self.folder_path}/classes/classes.json"
3533
)

tests/integration/test_recursive_folder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def test_annotations_recursive_s3_10(self):
197197
uploaded = sa.upload_annotations_from_folder_to_project(self.PROJECT_NAME, '8sep',
198198
from_s3_bucket="superannotate-python-sdk-test",
199199
recursive_subfolders=False)
200-
self.assertEqual(len(uploaded[0]), 10)
200+
self.assertEqual(len(uploaded[0]), 9)
201201

202202
def test_images_non_recursive(self):
203203
sa.upload_images_from_folder_to_project(

0 commit comments

Comments
 (0)