View Single Post
Old 10-11-2023, 08:10 AM   #75
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: 11,765
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Question: In #admintags, I have several readinggoal:xxxx entries (where xx is the year). How would I search for books that contain at least two of these?
Isn't this a template question?

Examples:
Code:
program:
	list_count(list_re($#mytextmult, ',', 'aaa:', ''), ',') > 1
Code:
python:
def evaluate(book, context):
	lst = list(i for i in book.get('#mytextmult', '') if i.startswith('aaa:'))
	return '1' if len(lst) > 1 else ''
chaley is offline   Reply With Quote