dont loop

This commit is contained in:
j 2014-05-20 00:59:02 +02:00
parent f4f0554635
commit 2c5fe9db09

View file

@ -270,13 +270,14 @@ class Item(db.Model):
db.session.commit()
def update_meta(self, data):
self.meta = data
self.update()
self.modified = datetime.now()
self.save()
user = state.user()
if user in self.users:
Changelog.record(user, 'edititem', self.id, data)
if data != self.meta:
self.meta = data
self.update()
self.modified = datetime.now()
self.save()
user = state.user()
if user in self.users:
Changelog.record(user, 'edititem', self.id, data)
def update_mainid(self, key, id):
record = {}