mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove authors from authors table that are no longer used after a set_authors
This commit is contained in:
commit
d02f080e09
@ -2366,6 +2366,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
# This can repeat what was done above in rare cases. Let it.
|
# This can repeat what was done above in rare cases. Let it.
|
||||||
ss = self.author_sort_from_book(id, index_is_id=True)
|
ss = self.author_sort_from_book(id, index_is_id=True)
|
||||||
self._update_author_in_cache(id, ss, final_authors)
|
self._update_author_in_cache(id, ss, final_authors)
|
||||||
|
self.clean_standard_field('authors', commit=True)
|
||||||
return books_to_refresh
|
return books_to_refresh
|
||||||
|
|
||||||
def set_authors(self, id, authors, notify=True, commit=True,
|
def set_authors(self, id, authors, notify=True, commit=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user