Fix missing table in deleting books process for Kobo WiFi and Kobo-O 1.8 Beta

This commit is contained in:
Timothy Legge 2010-11-21 22:06:41 -04:00
parent fc524ee7d4
commit d6edba76cd

View File

@ -229,6 +229,10 @@ class KOBO(USBMS):
#Delete the volume_shortcovers second #Delete the volume_shortcovers second
cursor.execute('delete from volume_shortcovers where volumeid = ?', t) 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 # Delete the chapters associated with the book next
t = (ContentID,ContentID,) t = (ContentID,ContentID,)
cursor.execute('delete from content where BookID = ? or ContentID = ?', t) cursor.execute('delete from content where BookID = ? or ContentID = ?', t)