filter_by

This commit is contained in:
j 2016-01-12 11:14:16 +05:30
parent d68dcb69ca
commit d472d778cb

View file

@ -184,7 +184,7 @@ class Changelog(db.Model):
i.update() i.update()
else: else:
i.delete() i.delete()
Metadata.query(user_id=user.id, item_id=itemid).delete() Metadata.query.filter_by(user_id=user.id, item_id=itemid).delete()
return True return True
def action_addlist(self, user, timestamp, name, query=None): def action_addlist(self, user, timestamp, name, query=None):