mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix all_annotations_for_book()
This commit is contained in:
parent
27fb4dd37e
commit
18cc641ea9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user