From 85708073f04fa6ca57cc7b6ac320cf7f2cddf33d Mon Sep 17 00:00:00 2001
From: Ole Laursen <olau@iola.dk>
Date: Wed, 2 May 2012 11:32:42 +0000
Subject: [PATCH] Fix "yes" calculation in needed_ballot_position (bug found by
 Robert Sparks).  - Legacy-Id: 4347

---
 ietf/doc/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ietf/doc/utils.py b/ietf/doc/utils.py
index b48c1ccbb..a75ea5a4f 100644
--- a/ietf/doc/utils.py
+++ b/ietf/doc/utils.py
@@ -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: