Skip to content

Commit 0a76a26

Browse files
committed
Fixed the additional nit mentioned in issue ietf-tools#974 better. Together with earlier commits, this fixes ietf-tools#974.
- Legacy-Id: 5632
1 parent becd10a commit 0a76a26

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ietf/doc/utils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ def needed_ballot_positions(doc, active_positions):
5252
if len(yes) < 1:
5353
answer.append("Needs a YES.")
5454
if blocking:
55-
if blocking == 1:
55+
if len(blocking) == 1:
5656
answer.append("Has a %s." % blocking[0].pos.name.upper())
5757
else:
58-
answer.append("Has %d %s." % (len(blocking), blocking[0].name.upper()))
58+
if blocking[0].pos.name.upper().endswith('S'):
59+
answer.append("Has %d %ses." % (len(blocking), blocking[0].pos.name.upper()))
60+
else:
61+
answer.append("Has %d %ss." % (len(blocking), blocking[0].pos.name.upper()))
5962
needed = 1
6063
if doc.type_id == "draft" and doc.intended_std_level_id in ("bcp", "ps", "ds", "std"):
6164
# For standards-track, need positions from 2/3 of the

0 commit comments

Comments
 (0)