Verified Commit 2c08672f authored by Kevin Morris's avatar Kevin Morris
Browse files

fix: participation display generation should check voteinfo.ActiveTUs



Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent 2f8e2288
Pipeline #15511 passed with stages
in 3 minutes and 3 seconds
......@@ -118,7 +118,7 @@ def render_proposal(request: Request, context: dict, proposal: int,
context["voters"] = voters.all()
total = voteinfo.total_votes()
participation = (total / voteinfo.ActiveTUs) if total else 0
participation = (total / voteinfo.ActiveTUs) if voteinfo.ActiveTUs else 0
context["participation"] = participation
accepted = (voteinfo.Yes > voteinfo.ActiveTUs / 2) or \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment