Skip to content
Snippets Groups Projects
Commit fad6161a authored by Ben Adida's avatar Ben Adida
Browse files

bug fix

parent 596f03c0
No related branches found
No related tags found
No related merge requests found
...@@ -374,7 +374,7 @@ def one_question_winner(question, result, num_cast_votes): ...@@ -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 there's a max > 1, we assume that the top MAX win
if question['max'] > 1: 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 max = 1, then depends on absolute or relative
if question['result_type'] == 'absolute': if question['result_type'] == 'absolute':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment