diff --git a/oml/item/models.py b/oml/item/models.py index e8f65d2..fbf53c9 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -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()