mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fixes shelf list, which is now no longer empty.
No idea, why "false" das not work anymore in the sql query.
This commit is contained in:
parent
1cc55ea71b
commit
5974229cae
@ -3081,7 +3081,10 @@ class KOBOTOUCH(KOBO):
|
|||||||
if not self.supports_bookshelves:
|
if not self.supports_bookshelves:
|
||||||
return bookshelves
|
return bookshelves
|
||||||
|
|
||||||
query = 'SELECT Name FROM Shelf WHERE _IsDeleted = "false"'
|
if self.dbversion >= 188:
|
||||||
|
query = 'SELECT Name FROM Shelf WHERE _IsDeleted = false'
|
||||||
|
else:
|
||||||
|
query = 'SELECT Name FROM Shelf WHERE _IsDeleted = "false"'
|
||||||
|
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
cursor.execute(query)
|
cursor.execute(query)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user