Skip to content

Commit

Permalink
Merge pull request #9 from the-Bruce/fix/count-bug
Browse files Browse the repository at this point in the history
Fix bug with in progress vote counts
  • Loading branch information
Joeyh021 authored Feb 26, 2023
2 parents e748d7e + 7bd68c6 commit 4ddb17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion votes/templatetags/vote_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def sanitized_vote_count(vote: Election):
if value <= 5:
return mark_safe("&le; 5")
else:
return f"{math.floor(value/5)*5} - {math.ceil(value/5)*5}"
return f"{math.floor(value/5)*5} - {math.ceil((value+1)/5)*5}"


@register.simple_tag(takes_context=True)
Expand Down

0 comments on commit 4ddb17c

Please sign in to comment.