mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 01:33:17 +02:00
Fix #7046 - exception when deleting a publisher
This commit is contained in:
parent
ce8edcb045
commit
bf58ecaa46
1 changed files with 1 additions and 1 deletions
|
|
@ -1593,7 +1593,7 @@ def rename_publisher(self, old_id, new_name):
|
|||
self.conn.commit()
|
||||
|
||||
def delete_publisher_using_id(self, old_id):
|
||||
self.dirty_books_referencing('publisher', id, commit=False)
|
||||
self.dirty_books_referencing('publisher', old_id, commit=False)
|
||||
self.conn.execute('''DELETE FROM books_publishers_link
|
||||
WHERE publisher=?''', (old_id,))
|
||||
self.conn.execute('DELETE FROM publishers WHERE id=?', (old_id,))
|
||||
|
|
|
|||
Loading…
Reference in a new issue