Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
shared
vote
Helios Server
Commits
fad6161a
Commit
fad6161a
authored
14 years ago
by
Ben Adida
Browse files
Options
Download
Email Patches
Plain Diff
bug fix
parent
596f03c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helios/crypto/electionalgs.py
+1
-1
helios/crypto/electionalgs.py
with
1 addition
and
1 deletion
+1
-1
helios/crypto/electionalgs.py
View file @
fad6161a
...
...
@@ -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'
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help