mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix bug in new bulk tag edit function when adding already existing tags
This commit is contained in:
parent
36fe291ceb
commit
99b0d8f2b9
2 changed files with 2 additions and 2 deletions
|
|
@ -377,7 +377,7 @@ def set_custom_bulk_multiple(self, ids, add=[], remove=[],
|
|||
if add:
|
||||
self.conn.execute(
|
||||
'''
|
||||
INSERT INTO {0}(book, value) SELECT {1}.id, {2}.id FROM {1}, {2}
|
||||
INSERT OR REPLACE INTO {0}(book, value) SELECT {1}.id, {2}.id FROM {1}, {2}
|
||||
'''.format(link_table, temp_tables[0], temp_tables[1])
|
||||
)
|
||||
# get rid of the temp tables
|
||||
|
|
|
|||
|
|
@ -1434,7 +1434,7 @@ def bulk_modify_tags(self, ids, add=[], remove=[], notify=False):
|
|||
if add:
|
||||
self.conn.execute(
|
||||
'''
|
||||
INSERT INTO books_tags_link(book, tag) SELECT {0}.id, {1}.id FROM
|
||||
INSERT OR REPLACE INTO books_tags_link(book, tag) SELECT {0}.id, {1}.id FROM
|
||||
{0}, {1}
|
||||
'''.format(tables[0], tables[1])
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue