From 17b87d65d351bfe2d209a55dab726e548bea4baa Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 1 Mar 2024 10:00:42 +0200 Subject: Show only yes votes in vote count --- templates/poll_vote_list.html.j2 | 2 +- templates/poll_vote_table.html.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/poll_vote_list.html.j2 b/templates/poll_vote_list.html.j2 index f782a90..9d3a15c 100644 --- a/templates/poll_vote_list.html.j2 +++ b/templates/poll_vote_list.html.j2 @@ -7,7 +7,7 @@ {% include "poll_choice_datetime_range.html.j2" %} - {{ choice.votes | length }} votes + {{ choice.votes_with_value(1) | length }} votes
{% if choice.votes_with_value(1) | length != 0 %} diff --git a/templates/poll_vote_table.html.j2 b/templates/poll_vote_table.html.j2 index 97fcac5..a7aa434 100644 --- a/templates/poll_vote_table.html.j2 +++ b/templates/poll_vote_table.html.j2 @@ -5,7 +5,7 @@ {% include "poll_choice_datetime_range.html.j2" %} - {{ choice.votes | length }} votes + {{ choice.votes_with_value(1) | length }} votes {% endfor %} -- cgit v1.3