Commit fad6161a authored by Ben Adida's avatar Ben Adida
Browse files

bug fix

parent 596f03c0
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment