revert d817c67f83
This commit is contained in:
parent
619a2fbd37
commit
d9bd113ee5
2 changed files with 7 additions and 7 deletions
|
@ -65,7 +65,6 @@ class Changelog(db.Model):
|
||||||
def apply_changes(cls, user, changes):
|
def apply_changes(cls, user, changes):
|
||||||
trigger = changes
|
trigger = changes
|
||||||
for change in changes:
|
for change in changes:
|
||||||
with db.session():
|
|
||||||
if not cls.apply_change(user, change, trigger=False):
|
if not cls.apply_change(user, change, trigger=False):
|
||||||
logger.debug('FAIL %s', change)
|
logger.debug('FAIL %s', change)
|
||||||
trigger = False
|
trigger = False
|
||||||
|
|
|
@ -297,6 +297,7 @@ class Node(Thread):
|
||||||
return False
|
return False
|
||||||
if not changes:
|
if not changes:
|
||||||
return False
|
return False
|
||||||
|
with db.session():
|
||||||
r = Changelog.apply_changes(self.user, changes)
|
r = Changelog.apply_changes(self.user, changes)
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue