Skip to content

Commit 066c19d

Browse files
authored
Merge pull request #163 from superannotateai/re-merge
Re merge
2 parents a984031 + 91d0666 commit 066c19d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/superannotate/lib/core/usecases.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4144,7 +4144,15 @@ def paths(self):
41444144
):
41454145
paths.append(key)
41464146
break
4147-
return paths
4147+
4148+
paths = [str(path) for path in paths]
4149+
return [
4150+
path
4151+
for path in paths
4152+
if "___objects" not in path
4153+
and "___fuse" not in path
4154+
and "___pixel" not in path
4155+
]
41484156

41494157
@cached_property
41504158
def images_to_upload(self):

tests/integration/test_duplicate_image_upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_single_image_upload(self):
4343
)
4444
self.assertEqual(len(uploaded), 0)
4545
self.assertEqual(len(could_not_upload), 0)
46-
self.assertEqual(len(existing_images), 8)
46+
self.assertEqual(len(existing_images), 4)
4747

4848
uploaded, could_not_upload, existing_images = sa.upload_images_to_project(
4949
self.PROJECT_NAME, [f"{self.folder_path}/dd.jpg"]

0 commit comments

Comments
 (0)