fix record_ts
This commit is contained in:
parent
031665bc24
commit
4f9e3d9c4d
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue