dont loop
This commit is contained in:
parent
f4f0554635
commit
2c5fe9db09
1 changed files with 8 additions and 7 deletions
|
@ -270,13 +270,14 @@ class Item(db.Model):
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
def update_meta(self, data):
|
def update_meta(self, data):
|
||||||
self.meta = data
|
if data != self.meta:
|
||||||
self.update()
|
self.meta = data
|
||||||
self.modified = datetime.now()
|
self.update()
|
||||||
self.save()
|
self.modified = datetime.now()
|
||||||
user = state.user()
|
self.save()
|
||||||
if user in self.users:
|
user = state.user()
|
||||||
Changelog.record(user, 'edititem', self.id, data)
|
if user in self.users:
|
||||||
|
Changelog.record(user, 'edititem', self.id, data)
|
||||||
|
|
||||||
def update_mainid(self, key, id):
|
def update_mainid(self, key, id):
|
||||||
record = {}
|
record = {}
|
||||||
|
|
Loading…
Reference in a new issue