Skip to content

Need help with jinja2 field for accepted entries count #3615

Answered by gazpachoking
redcat42 asked this question in Q&A
Discussion options

You must be logged in to vote

If you are using the task section of the notify plugin the template will be rendered once per task, rather than once per entry. You can then use the special variable task in your template. To get the number of accepted entries in your template it would be {{ task.accepted|length }}. Looks like our documentation is a bit lacking on this at the moment.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by redcat42
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants