mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Using 'false' for sql query, which works with all db versions.
This commit is contained in:
parent
c9e0c2e658
commit
7998ff7d60
@ -3086,10 +3086,7 @@ class KOBOTOUCH(KOBO):
|
||||
if not self.supports_bookshelves:
|
||||
return bookshelves
|
||||
|
||||
if self.dbversion >= 188:
|
||||
query = 'SELECT Name FROM Shelf WHERE _IsDeleted = false'
|
||||
else:
|
||||
query = 'SELECT Name FROM Shelf WHERE _IsDeleted = "false"'
|
||||
query = "SELECT Name FROM Shelf WHERE _IsDeleted = 'false'"
|
||||
|
||||
cursor = connection.cursor()
|
||||
cursor.execute(query)
|
||||
|
Loading…
x
Reference in New Issue
Block a user