Skip to content

Commit 2bc0001

Browse files
authored
Merge pull request #242 from superannotateai/fix-upload-annotations
Fix annoatations path
2 parents 005d8d5 + a0d690c commit 2bc0001

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/superannotate/lib/app/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ def get_local_annotation_paths(
5050
) -> List[str]:
5151
all_items = [*Path(folder_path).glob("*")]
5252
all_folders = [i for i in all_items if i.is_dir()]
53+
all_not_folders = [i for i in all_items if not i.is_dir()]
5354
annotation_paths.update(
5455
[
5556
str(i)
56-
for i in all_items
57+
for i in all_not_folders
5758
if i.name.endswith((VECTOR_ANNOTATION_POSTFIX, PIXEL_ANNOTATION_POSTFIX))
5859
]
5960
)

0 commit comments

Comments
 (0)