View Single Post
Old 10-27-2024, 07:50 PM   #1022
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,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by thiago.eec View Post
Hi, @chaley.

The has_note(field_name, field_value) function can find all the books that have a note for 'field_name' which value is 'field_value'.

Would it be possible to update the function so we can find books that have notes, no matter their value? Maybe setting 'field_value' to '', '*' or something like that.
I don't understand what you want to do. Do you want a list of book ids that have a note for any value, for example all books for which any author has a note? If so, what would you do with that list? It is certainly possible to get such a list using a Python template, but I don't see the use case.

Note that field_value is for example the tag, author, or series name, not the contents of the note attached to the field.
chaley is offline   Reply With Quote