mirror of
https://github.com/wassname/sloth.git
synced 2026-06-27 18:25:49 +08:00
Don't append duplicate files on cmd line multiple times
If a file is specified multiple time on the command line, do not append it multiple times.
This commit is contained in:
@@ -123,6 +123,7 @@ class AppendFilesCommand(BaseCommand):
|
||||
else:
|
||||
logger.debug("Adding image file: %s" % rel_filename)
|
||||
item = self.labeltool.addImageFile(rel_filename)
|
||||
present_filenames.add(rel_filename)
|
||||
|
||||
if options['unlabeled']:
|
||||
item.setUnlabeled(True)
|
||||
|
||||
Reference in New Issue
Block a user