pass id, don't depend on cast
This commit is contained in:
parent
45fb954164
commit
0e11f04d44
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ class Item(db.Model):
|
||||||
|
|
||||||
def remove_annotations(self):
|
def remove_annotations(self):
|
||||||
from annotation.models import Annotation
|
from annotation.models import Annotation
|
||||||
for a in Annotation.query.filter_by(item_id=self.id, user_id=state.user()):
|
for a in Annotation.query.filter_by(item_id=self.id, user_id=state.user().id):
|
||||||
a.add_record('removeannotation')
|
a.add_record('removeannotation')
|
||||||
a.delete()
|
a.delete()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue