Skip to content

Commit 27e0099

Browse files
committed
fixed folder structuring during download
1 parent a70960f commit 27e0099

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
@@ -1194,9 +1194,11 @@ def execute(self):
11941194
item_names = self._item_names
11951195

11961196
new_export_path = export_path
1197-
if folder.name != "root":
1197+
1198+
if not folder.is_root and self._folder.is_root:
11981199
new_export_path += f"/{folder.name}"
11991200

1201+
12001202
# TODO check
12011203
if not item_names:
12021204
continue
@@ -1208,9 +1210,6 @@ def execute(self):
12081210
)
12091211
futures.append(future)
12101212

1211-
for future in concurrent.futures.as_completed(futures):
1212-
print(future.result())
1213-
12141213
self.reporter.stop_spinner()
12151214
count = self.get_items_count(export_path)
12161215
self.reporter.log_info(f"Downloaded annotations for {count} items.")

0 commit comments

Comments
 (0)