Fixed the ballots needed count error in two more places. See issue #974.

- Legacy-Id: 5626
This commit is contained in:
Henrik Levkowetz 2013-04-05 14:06:13 +00:00
parent 55626b8523
commit fb1df9e2eb
2 changed files with 2 additions and 2 deletions

View file

@ -589,7 +589,7 @@ class InternetDraft(Document):
if standardsTrack:
# For standards-track, need positions from 2/3 of the
# non-recused current IESG.
needed = int((len(ads) - recuse) * 2 / 3)
needed = int(math.ceil((len(ads) - recuse) * 2.0/3.0))
else:
# Info and experimental only need one position.
# Info and experimental without Yes have their full spec now.

View file

@ -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 = (len(active_positions) - len(recuse)) * 2 // 3
needed = math.ceil((len(active_positions) - len(recuse)) * 2.0/3.0)
else:
if len(yes) < 1:
return " ".join(answer)