revert d817c67f83
This commit is contained in:
parent
619a2fbd37
commit
d9bd113ee5
2 changed files with 7 additions and 7 deletions
|
@ -65,12 +65,11 @@ 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
|
||||
break
|
||||
return False
|
||||
if not cls.apply_change(user, change, trigger=False):
|
||||
logger.debug('FAIL %s', change)
|
||||
trigger = False
|
||||
break
|
||||
return False
|
||||
if trigger:
|
||||
trigger_event('change', {});
|
||||
return True
|
||||
|
|
|
@ -297,7 +297,8 @@ class Node(Thread):
|
|||
return False
|
||||
if not changes:
|
||||
return False
|
||||
r = Changelog.apply_changes(self.user, changes)
|
||||
with db.session():
|
||||
r = Changelog.apply_changes(self.user, changes)
|
||||
return r
|
||||
|
||||
def pushChanges(self, changes):
|
||||
|
|
Loading…
Reference in a new issue