Skip to content

Commit 34a1ab0

Browse files
authored
Merge pull request #494 from superannotateai/fix_folder_structure_download
fixed folder structuring during download
2 parents ba2cdfa + 27e0099 commit 34a1ab0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/superannotate/lib/core/usecases/annotations.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,9 +1198,11 @@ def execute(self):
11981198
item_names = self._item_names
11991199

12001200
new_export_path = export_path
1201-
if folder.name != "root":
1201+
1202+
if not folder.is_root and self._folder.is_root:
12021203
new_export_path += f"/{folder.name}"
12031204

1205+
12041206
# TODO check
12051207
if not item_names:
12061208
continue
@@ -1212,9 +1214,6 @@ def execute(self):
12121214
)
12131215
futures.append(future)
12141216

1215-
for future in concurrent.futures.as_completed(futures):
1216-
print(future.result())
1217-
12181217
self.reporter.stop_spinner()
12191218
count = self.get_items_count(export_path)
12201219
self.reporter.log_info(f"Downloaded annotations for {count} items.")

0 commit comments

Comments
 (0)