Add abstaining from voting.

This commit is contained in:
2023-11-03 13:38:23 -04:00
parent 289b752678
commit 80c4f053bc
2 changed files with 18 additions and 6 deletions
+2 -1
View File
@@ -90,7 +90,8 @@ def build_votes_str(config: DakinyConfig) -> str:
stmt = select(Votes).where(Votes.ElectionCycle == get_election_cycle_name(config))
for vote in session.scalars(stmt):
votes[vote.VotedForId] += 1
if vote.VotedForId is not None:
votes[vote.VotedForId] += 1
votes_str: str = "===================="
for user_id, num_votes in votes.items():