Fix "yes" calculation in needed_ballot_position (bug found by Robert Sparks).

- Legacy-Id: 4347
This commit is contained in:
Ole Laursen 2012-05-02 11:32:42 +00:00
parent 7f5a86f5dd
commit 85708073f0

View file

@ -60,7 +60,7 @@ def needed_ballot_positions(doc, active_positions):
recuse = [p for p in active_positions if p and p.pos_id == "recuse"]
answer = []
if yes < 1:
if len(yes) < 1:
answer.append("Needs a YES.")
if blocking:
if blocking: