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-release.git


The following commit(s) were added to refs/heads/main by this push:
     new e737cff  Fix a cardinality agreement problem
e737cff is described below

commit e737cff249184027d5883b3676626761ba79c8c9
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Jul 1 15:43:20 2025 +0100

    Fix a cardinality agreement problem
---
 atr/routes/vote.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/atr/routes/vote.py b/atr/routes/vote.py
index 3aa5fd4..0bb20e9 100644
--- a/atr/routes/vote.py
+++ b/atr/routes/vote.py
@@ -562,7 +562,9 @@ def _tabulate_vote_resolution(
     body.extend(_tabulate_vote_resolution_votes(tabulated_votes, 
{VoteStatus.BINDING}))
 
     binding_total = summary["binding_votes"]
-    body.append(f"There were {binding_total} binding {'vote' if (binding_total 
== 1) else 'votes'}.")
+    were_word = "was" if (binding_total == 1) else "were"
+    votes_word = "vote" if (binding_total == 1) else "votes"
+    body.append(f"There {were_word} {binding_total} binding {votes_word}.")
     body.append("")
 
     binding_yes = summary["binding_votes_yes"]


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

Reply via email to