Fix all_annotations_for_book()

This commit is contained in:
Kovid Goyal
2021-05-23 20:47:17 +05:30
parent 27fb4dd37e
commit 18cc641ea9
+1 -1
View File
@@ -1847,7 +1847,7 @@ class DB(object):
def all_annotations_for_book(self, book_id, ignore_removed=False):
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:
annot = json.loads(data)