{{ rat.many_users | map(attribute="approved") | select("equalto", True) | list | length }} /
{{ rat.many_users | map(attribute="disapproved") | select("equalto", True) | list | length }}
{% if rat.many_users | map(attribute="id_User") | select("equalto", user.id) | list | length == 1 %}
{% if (rat.many_users | selectattr("id_User", "equalto", user.id) | list) [0] | attr("approved")== True %}
{% else %}
{% endif %}
{% endif %}
|