Fixed another issue with the ballot counts (unreachable code). See issue #974.
- Legacy-Id: 5627
This commit is contained in:
parent
fb1df9e2eb
commit
f3833e1d17
|
@ -50,7 +50,7 @@ def needed_ballot_positions(doc, active_positions):
|
|||
if len(yes) < 1:
|
||||
answer.append("Needs a YES.")
|
||||
if blocking:
|
||||
if blocking:
|
||||
if blocking == 1:
|
||||
answer.append("Has a %s." % blocking[0].pos.name.upper())
|
||||
else:
|
||||
answer.append("Has %d %s." % (len(blocking), blocking[0].name.upper()))
|
||||
|
@ -58,7 +58,7 @@ def needed_ballot_positions(doc, active_positions):
|
|||
if doc.type_id == "draft" and doc.intended_std_level_id in ("bcp", "ps", "ds", "std"):
|
||||
# For standards-track, need positions from 2/3 of the
|
||||
# non-recused current IESG.
|
||||
needed = math.ceil((len(active_positions) - len(recuse)) * 2.0/3.0)
|
||||
needed = int(math.ceil((len(active_positions) - len(recuse)) * 2.0/3.0))
|
||||
else:
|
||||
if len(yes) < 1:
|
||||
return " ".join(answer)
|
||||
|
|
Loading…
Reference in a new issue