This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new 93d190c  Fix a bug with counting abstain votes
93d190c is described below

commit 93d190c3be83dea84e54e78af32eaaad4cdf911d
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Dec 22 20:13:31 2025 +0000

    Fix a bug with counting abstain votes
---
 atr/tabulate.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/atr/tabulate.py b/atr/tabulate.py
index 0ed64ca..352a0fd 100644
--- a/atr/tabulate.py
+++ b/atr/tabulate.py
@@ -188,17 +188,17 @@ def vote_summary(tabulated_votes: dict[str, 
models.tabulate.VoteEmail]) -> dict[
             result["binding_votes"] += 1
             result["binding_votes_yes"] += 1 if (vote_email.vote.value == 
"Yes") else 0
             result["binding_votes_no"] += 1 if (vote_email.vote.value == "No") 
else 0
-            result["binding_votes_abstain"] += 1 if (vote_email.vote.value == 
"?") else 0
+            result["binding_votes_abstain"] += 1 if (vote_email.vote.value == 
"-") else 0
         elif vote_email.status in {models.tabulate.VoteStatus.COMMITTER, 
models.tabulate.VoteStatus.CONTRIBUTOR}:
             result["non_binding_votes"] += 1
             result["non_binding_votes_yes"] += 1 if (vote_email.vote.value == 
"Yes") else 0
             result["non_binding_votes_no"] += 1 if (vote_email.vote.value == 
"No") else 0
-            result["non_binding_votes_abstain"] += 1 if (vote_email.vote.value 
== "?") else 0
+            result["non_binding_votes_abstain"] += 1 if (vote_email.vote.value 
== "-") else 0
         else:
             result["unknown_votes"] += 1
             result["unknown_votes_yes"] += 1 if (vote_email.vote.value == 
"Yes") else 0
             result["unknown_votes_no"] += 1 if (vote_email.vote.value == "No") 
else 0
-            result["unknown_votes_abstain"] += 1 if (vote_email.vote.value == 
"?") else 0
+            result["unknown_votes_abstain"] += 1 if (vote_email.vote.value == 
"-") else 0
 
     return result
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to