From d6edba76cdbb0729beac475c8de4324aa7a7245c Mon Sep 17 00:00:00 2001 From: Timothy Legge Date: Sun, 21 Nov 2010 22:06:41 -0400 Subject: [PATCH] Fix missing table in deleting books process for Kobo WiFi and Kobo-O 1.8 Beta --- src/calibre/devices/kobo/driver.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 934dc0879e..174441c276 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -229,6 +229,10 @@ class KOBO(USBMS): #Delete the volume_shortcovers second cursor.execute('delete from volume_shortcovers where volumeid = ?', t) + # Delete the rows from content_keys + if self.dbversion >= 8: + cursor.execute('delete from content_keys where volumeid = ?', t) + # Delete the chapters associated with the book next t = (ContentID,ContentID,) cursor.execute('delete from content where BookID = ? or ContentID = ?', t)