Skip to content

Commit

Permalink
BB-921 re-order poll xBlock result data (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
dupainaulevain authored and xitij2000 committed Feb 13, 2019
1 parent 291dce0 commit ff707e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion poll/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ def tally_detail(self):
except ZeroDivisionError:
answer['percent'] = 0

tally.sort(key=lambda x: x['count'], reverse=True)
# This should always be true, but on the off chance there are
# no answers...
if tally:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def package_data(pkg, roots):

setup(
name='xblock-poll',
version='1.7.0',
version='1.8.0',
description='An XBlock for polling users.',
packages=[
'poll',
Expand Down

0 comments on commit ff707e5

Please sign in to comment.