View Single Post
Old 07-21-2022, 05:45 AM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I wonder if there could be made a template function something like annotation_count() but a boolean, -- has_index_text() perhaps.
There isn't an API to ask if a book is in the index.

EDIT: and looking at the code it would be *very* slow, requiring a DB lookup for each book. The answer would need to be cached, something I am not prepared to do as it isn't clear that such a function is worth the effort.

Last edited by chaley; 07-21-2022 at 05:56 AM.
chaley is offline   Reply With Quote