Skip to content

Commit f3833e1

Browse files
committed
Fixed another issue with the ballot counts (unreachable code). See issue ietf-tools#974.
- Legacy-Id: 5627
1 parent fb1df9e commit f3833e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/doc/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ def needed_ballot_positions(doc, active_positions):
5050
if len(yes) < 1:
5151
answer.append("Needs a YES.")
5252
if blocking:
53-
if blocking:
53+
if blocking == 1:
5454
answer.append("Has a %s." % blocking[0].pos.name.upper())
5555
else:
5656
answer.append("Has %d %s." % (len(blocking), blocking[0].name.upper()))
5757
needed = 1
5858
if doc.type_id == "draft" and doc.intended_std_level_id in ("bcp", "ps", "ds", "std"):
5959
# For standards-track, need positions from 2/3 of the
6060
# non-recused current IESG.
61-
needed = math.ceil((len(active_positions) - len(recuse)) * 2.0/3.0)
61+
needed = int(math.ceil((len(active_positions) - len(recuse)) * 2.0/3.0))
6262
else:
6363
if len(yes) < 1:
6464
return " ".join(answer)

0 commit comments

Comments
 (0)