fix record_ts

This commit is contained in:
j 2016-01-09 02:30:31 +05:30
parent 031665bc24
commit 4f9e3d9c4d

View file

@ -285,7 +285,7 @@ class Item(db.Model):
self.save()
user = state.user()
if record and user in self.users:
Changelog.record_ts(user, 'edititem', modified, self.id, record)
Changelog.record_ts(user, modified, 'edititem', self.id, record)
def update_primaryid(self, key=None, id=None, scrape=True, modified=None):
if key is None and id is None:
@ -325,7 +325,7 @@ class Item(db.Model):
f.move()
user = state.user()
if user in self.users:
Changelog.record_ts(user, 'edititem', modified, self.id, record)
Changelog.record_ts(user, modified, 'edititem', self.id, record)
def edit_metadata(self, data):
Scrape.query.filter_by(item_id=self.id).delete()