mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Revert "Using 'false' for sql query, which works with all db versions."
This reverts commit 7998ff7d6076b5061afe8e5446ade02674800051.
This commit is contained in:
parent
7998ff7d60
commit
011f274830
@ -3086,7 +3086,10 @@ class KOBOTOUCH(KOBO):
|
||||
if not self.supports_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.execute(query)
|
||||
|
Loading…
x
Reference in New Issue
Block a user