Skip to content

Commit 22c522b

Browse files
committed
Merge branch 'develop' of https://github.com/superannotateai/superannotate-python-sdk into folder-limitations
2 parents 2b95b6b + 15eaa30 commit 22c522b

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

superannotate/db/project_images.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def upload_image_to_project(
5252
Can be either "compressed" or "original". If None then the default value in project settings will be used.
5353
:type image_quality_in_editor: str
5454
"""
55+
initial_project_inp = project
5556
project, folder = get_project_and_folder_metadata(project)
5657
upload_state = common.upload_state_int_to_str(project.get("upload_state"))
5758
if upload_state == "External":
@@ -129,7 +130,7 @@ def upload_image_to_project(
129130

130131
while True:
131132
try:
132-
get_image_metadata(project, img_name)
133+
get_image_metadata(initial_project_inp, img_name)
133134
except SABaseException:
134135
time.sleep(0.2)
135136
else:
@@ -328,11 +329,9 @@ def move_images(
328329
)
329330
if image_names is None:
330331
image_names = search_images((source_project, source_project_folder))
331-
_copy_images(
332-
(source_project, source_project_folder),
333-
(destination_project, destination_project_folder), image_names,
334-
include_annotations, copy_annotation_status, copy_pin
335-
)
332+
copy_images((source_project, source_project_folder), image_names,
333+
(destination_project, destination_project_folder),
334+
include_annotations, copy_annotation_status, copy_pin)
336335
delete_images((source_project, source_project_folder), image_names)
337336
logger.info(
338337
"Moved images %s from project %s to project %s", image_names,

superannotate/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.1.3b3"
1+
__version__ = "4.1.3b7"

tests/test_folders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def test_copy_images(tmpdir):
348348
num_images = sa.get_project_image_count(project2)
349349
assert num_images == 4
350350

351-
assert res == 2
351+
assert len(res) == 2
352352

353353
sa.copy_images(
354354
project, ["example_image_2.jpg", "example_image_3.jpg"],

0 commit comments

Comments
 (0)