From fad6161aab012b8450f33330061937606ce9456a Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Sun, 31 Oct 2010 08:58:28 -0700 Subject: [PATCH] bug fix --- helios/crypto/electionalgs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helios/crypto/electionalgs.py b/helios/crypto/electionalgs.py index 662a81a..c161fed 100644 --- a/helios/crypto/electionalgs.py +++ b/helios/crypto/electionalgs.py @@ -374,7 +374,7 @@ def one_question_winner(question, result, num_cast_votes): # if there's a max > 1, we assume that the top MAX win if question['max'] > 1: - return [c[0] for c in counts[:max]] + return [c[0] for c in counts[:question['max']]] # if max = 1, then depends on absolute or relative if question['result_type'] == 'absolute': -- GitLab