From ca8d7117b9c07bf93ac5b7e2c91b033340c2dee3 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 22 Jul 2024 15:34:04 +0200 Subject: [PATCH] minimise the risk of a regression bug --- src/calibre/devices/kobo/driver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index c6462c4872..d34e662a73 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -3087,7 +3087,8 @@ class KOBOTOUCH(KOBO): return bookshelves # No idea why, but the newer database version seems to make this distinction necessary - if self.dbversion >= 188: + # (to minimise the risk of a regression bug, only do this - for now - if device is a tolino) + if self.dbversion >= 188 and self.isTolinoDevice(): query = 'SELECT Name FROM Shelf WHERE _IsDeleted = false' else: query = 'SELECT Name FROM Shelf WHERE _IsDeleted = "false"'