Skip to content

Commit

Permalink
Fix for GitHub issue #75?
Browse files Browse the repository at this point in the history
  • Loading branch information
GRiker committed Apr 12, 2014
1 parent d0bf240 commit f709c49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions readers/GoodReader_overlays.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ def sync_booklists(self, booklists, end_session=True):
filename,
title
FROM metadata
WHERE filename = {0}
WHERE filename = "{0}"
'''.format(json.dumps(book.path)))
cached_book = cur.fetchone()
if cached_book:
Expand Down Expand Up @@ -878,7 +878,7 @@ def _get_cached_metadata(self, cur, book):
title_sort,
uuid
FROM metadata
WHERE filename=?
WHERE filename="?"
''', (book, )
)

Expand Down
4 changes: 2 additions & 2 deletions readers/Kindle_overlays.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def sync_booklists(self, booklists, end_session=True):
filename,
title
FROM metadata
WHERE filename = {0}
WHERE filename = "{0}"
'''.format(json.dumps(book.path)))
cached_book = cur.fetchone()
if cached_book:
Expand Down Expand Up @@ -886,7 +886,7 @@ def _get_cached_metadata(self, cur, book):
title_sort,
uuid
FROM metadata
WHERE filename=?
WHERE filename="?"
''', (book, )
)

Expand Down

0 comments on commit f709c49

Please sign in to comment.