mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1710 (Fix for FTS re-index all formats of a book not working.)
This commit is contained in:
parent
bd78ad3410
commit
9df8c2e629
@ -899,7 +899,10 @@ class BookInfo(HTMLDisplay):
|
||||
def reindex_fmt(self, book_id, fmt):
|
||||
from calibre.gui2.ui import get_gui
|
||||
db = get_gui().current_db.new_api
|
||||
db.reindex_fts_book(book_id, fmt)
|
||||
if fmt:
|
||||
db.reindex_fts_book(book_id, fmt)
|
||||
else:
|
||||
db.reindex_fts_book(book_id)
|
||||
# }}}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user