Fix all_annotations_for_book()

This commit is contained in:
Kovid Goyal 2021-05-23 20:47:17 +05:30
parent 27fb4dd37e
commit 18cc641ea9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1847,7 +1847,7 @@ class DB(object):
def all_annotations_for_book(self, book_id, ignore_removed=False): def all_annotations_for_book(self, book_id, ignore_removed=False):
for (fmt, user_type, user, data) in self.execute( for (fmt, user_type, user, data) in self.execute(
'SELECT id, book, format, user_type, user, annot_data FROM annotations WHERE book=?', (book_id,) 'SELECT format, user_type, user, annot_data FROM annotations WHERE book=?', (book_id,)
): ):
try: try:
annot = json.loads(data) annot = json.loads(data)