From 0094e7c00675d5e0e2c8672e46043c40bc6c4b35 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 15 Apr 2018 01:14:20 -0700 Subject: [PATCH] Fix bug where add_tag supersedence caused early commit. --- etiquette/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etiquette/objects.py b/etiquette/objects.py index e2bffb0..7d4f610 100644 --- a/etiquette/objects.py +++ b/etiquette/objects.py @@ -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)