Fix #1710 (Fix for FTS re-index all formats of a book not working.)

This commit is contained in:
Kovid Goyal 2022-08-02 08:14:30 +05:30
parent bd78ad3410
commit 9df8c2e629
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)
# }}}