Quote:
Originally Posted by ownedbycats
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 ''