Add abstaining from voting.
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user