Skip to content

Commit 5ec8946

Browse files
committed
Update copy_move logs
1 parent b4b8473 commit 5ec8946

File tree

1 file changed

+6
-1
lines changed
  • src/superannotate/lib/core/usecases

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,12 @@ def _validate_limitations(self, items_count):
588588

589589
def validate_item_names(self):
590590
if self._item_names:
591+
provided_items_count = len(self._item_names)
591592
self._item_names = list(set(self._item_names))
593+
if len(self._item_names) > provided_items_count:
594+
self.reporter.log_info(
595+
f"Dropping duplicates. Found {len(self._item_names)}/{provided_items_count} unique items."
596+
)
592597

593598
def execute(self):
594599
if self.is_valid():
@@ -678,7 +683,7 @@ def execute(self):
678683
)
679684
operation_processing_map = {"copy": "Copied", "move": "Moved"}
680685
self.reporter.log_info(
681-
f"{operation_processing_map[self._operation]} {len(processed_items)}/{len(items_to_processing)} item(s) from "
686+
f"{operation_processing_map[self._operation]} {len(processed_items)}/{len(items)} item(s) from "
682687
f"{self._project.name}{'' if self._from_folder.is_root else f'/{self._from_folder.name}'} to "
683688
f"{self._project.name}{'' if self._to_folder.is_root else f'/{self._to_folder.name}'}"
684689
)

0 commit comments

Comments
 (0)