mirror of
https://github.com/wassname/sloth.git
synced 2026-10-03 12:50:11 +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:
1 parent
e6927cbc04
commit
af0829baf5
1 file changed
+1
@@ -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