dont loop
This commit is contained in:
parent
f4f0554635
commit
2c5fe9db09
1 changed files with 8 additions and 7 deletions
|
@ -270,6 +270,7 @@ class Item(db.Model):
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
def update_meta(self, data):
|
def update_meta(self, data):
|
||||||
|
if data != self.meta:
|
||||||
self.meta = data
|
self.meta = data
|
||||||
self.update()
|
self.update()
|
||||||
self.modified = datetime.now()
|
self.modified = datetime.now()
|
||||||
|
|
Loading…
Reference in a new issue