Change to only modify and no add

This commit is contained in:
Antonio J. Delgado 2021-09-06 17:20:06 +03:00
parent b27387cc64
commit 11ac1202ac

View file

@ -76,11 +76,11 @@ class image_classifier:
if key != 'cannot read a base/unknown IFD tag instance': if key != 'cannot read a base/unknown IFD tag instance':
sys.stdout.write(f"{key}: ") sys.stdout.write(f"{key}: ")
sys.stdout.write(self.exif_info[key]) sys.stdout.write(self.exif_info[key])
else:
self._log.debug("No exif info in the image.")
self.append_people_to_exif(people) self.append_people_to_exif(people)
with open(file, 'wb') as new_image_file: with open(file, 'wb') as new_image_file:
new_image_file.write(self.exif_info.get_file()) new_image_file.write(self.exif_info.get_file())
else:
self._log.debug("No exif info in the image.")
# get date # get date
# move to destination # move to destination
else: else: