Skip to content

Commit a0d690c

Browse files
committed
Fix annoatations path
1 parent ee724fa commit a0d690c

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)