mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 15:04:08 +02:00
...
This commit is contained in:
parent
eac44f83b8
commit
abc9232016
1 changed files with 2 additions and 0 deletions
|
|
@ -1341,6 +1341,7 @@ def set_sort_for_authors(self, author_id_to_sort_map, update_books=True):
|
|||
val_map[book_id] = ' & '.join(sorts)
|
||||
if val_map:
|
||||
self._set_field('author_sort', val_map)
|
||||
self._mark_as_dirty(changed_books)
|
||||
return changed_books
|
||||
|
||||
@write_api
|
||||
|
|
@ -1349,6 +1350,7 @@ def set_link_for_authors(self, author_id_to_link_map):
|
|||
changed_books = set()
|
||||
for author_id in author_id_to_link_map:
|
||||
changed_books |= self._books_for_field('authors', author_id)
|
||||
self._mark_as_dirty(changed_books)
|
||||
return changed_books
|
||||
|
||||
# }}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue