This commit is contained in:
j 2015-12-25 20:28:41 +05:30
parent 619a2fbd37
commit d9bd113ee5
2 changed files with 7 additions and 7 deletions

View file

@ -65,7 +65,6 @@ class Changelog(db.Model):
def apply_changes(cls, user, changes):
trigger = changes
for change in changes:
with db.session():
if not cls.apply_change(user, change, trigger=False):
logger.debug('FAIL %s', change)
trigger = False

View file

@ -297,6 +297,7 @@ class Node(Thread):
return False
if not changes:
return False
with db.session():
r = Changelog.apply_changes(self.user, changes)
return r