mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 13:46:13 +01:00
...
This commit is contained in:
parent
ff9af90409
commit
0dbaf01e9e
1 changed files with 2 additions and 2 deletions
|
|
@ -297,10 +297,10 @@ def delete_item_from_multiple(self, item, label=None, num=None):
|
|||
books_affected = []
|
||||
if idx > -1:
|
||||
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)
|
||||
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:
|
||||
books_affected = [b[0] for b in books]
|
||||
self.conn.execute('DELETE FROM %s WHERE value=?'%lt, (id_,))
|
||||
|
|
|
|||
Loading…
Reference in a new issue