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() 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 = {}