18 Oct 2024 (in calibre 7.21)
New template function
- list_count_field()
Code:
list_count_field(lookup_name)
returns the count of items in the field with the lookup name lookup_name. The field must be multi-valued such as authors or tags, otherwise the function raises an error. This function is much faster than list_count() because it operates directly on calibre data without converting it to a string first. Example: list_count_field('tags')