Fix bug where add_tag supersedence caused early commit.

This commit is contained in:
voussoir 2018-04-15 01:14:20 -07:00
parent bfc4f313a9
commit 0094e7c006

View file

@ -692,7 +692,7 @@ class Photo(ObjectBase):
if self.has_tag(parent, check_children=False):
message = f'Preferring new {tag} over {parent}'
self.photodb.log.debug(message)
self.remove_tag(parent)
self.remove_tag(parent, commit=False)
self.photodb.log.debug('Applying %s to %s', tag, self)