mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
...
This commit is contained in:
parent
ff9af90409
commit
0dbaf01e9e
@ -297,10 +297,10 @@ class CustomColumns(object):
|
|||||||
books_affected = []
|
books_affected = []
|
||||||
if idx > -1:
|
if idx > -1:
|
||||||
table, lt = self.custom_table_names(data['num'])
|
table, lt = self.custom_table_names(data['num'])
|
||||||
id_ = self.conn.get('SELECT id FROM %s where value = ?'%table,
|
id_ = self.conn.get('SELECT id FROM %s WHERE value = ?'%table,
|
||||||
(existing_tags[idx],), all=False)
|
(existing_tags[idx],), all=False)
|
||||||
if id_:
|
if id_:
|
||||||
books = self.conn.get('SELECT book FROM %s where value = ?'%lt, (id_,))
|
books = self.conn.get('SELECT book FROM %s WHERE value = ?'%lt, (id_,))
|
||||||
if books:
|
if books:
|
||||||
books_affected = [b[0] for b in books]
|
books_affected = [b[0] for b in books]
|
||||||
self.conn.execute('DELETE FROM %s WHERE value=?'%lt, (id_,))
|
self.conn.execute('DELETE FROM %s WHERE value=?'%lt, (id_,))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user