From 72b3053c56f510329f43fb46056f6210b40ebe6a Mon Sep 17 00:00:00 2001 From: Timothy Legge Date: Thu, 24 Jun 2010 23:31:45 -0300 Subject: [PATCH] More efficient select query --- src/calibre/devices/kobo/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 4071b10f6e..2a1e7bda89 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -118,7 +118,7 @@ class KOBO(USBMS): #cursor.close() query= 'select Title, Attribution, DateCreated, ContentID, MimeType, ContentType, ' \ - 'ImageID from content where ContentID in (select distinct volumeId from volume_shortcovers)' + 'ImageID from content where BookID is Null' cursor.execute (query)