Fix for #872, duplicate results with --exif (and --name) (#876)

This commit is contained in:
Rhet Turnbull
2022-12-19 07:39:24 -08:00
committed by GitHub
parent 830da7b3b4
commit 0472582870
2 changed files with 32 additions and 2 deletions

View File

@@ -3391,7 +3391,7 @@ class PhotosDB:
if n in p.filename or n in p.original_filename
]
)
photos = photo_list
photos = list(set(photo_list))
if options.min_size:
photos = [
@@ -3498,7 +3498,7 @@ class PhotosDB:
exifdata_value = str(exifdata_value)
if exifvalue in exifdata_value:
matching_photos.append(p)
photos = matching_photos
photos = list(set(matching_photos))
if options.added_after:
added_after = options.added_after