Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ccb5bfbc
Commit
ccb5bfbc
authored
Dec 19, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6244 from wwj718/patch-1
variable name error
parents
5ef27703
90f32134
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
AUTHORS
+1
-0
lms/djangoapps/instructor/views/legacy.py
+2
-2
No files found.
AUTHORS
View file @
ccb5bfbc
...
...
@@ -183,3 +183,4 @@ Akiva Leffert <akiva@edx.org>
Mike Bifulco <mbifulco@aquent.com>
Jim Zheng <jimzheng@stanford.edu>
Afzal Wali <afzaledx@edx.org>
Wenjie Wu <wuwenjie718@gmail.com>
lms/djangoapps/instructor/views/legacy.py
View file @
ccb5bfbc
...
...
@@ -1082,14 +1082,14 @@ def get_answers_distribution(request, course_key):
"""
course
=
get_course_with_access
(
request
.
user
,
'staff'
,
course_key
)
dist
=
grades
.
answer_distributions
(
course
.
id
)
course_answer_distributions
=
grades
.
answer_distributions
(
course
.
id
)
dist
=
{}
dist
[
'header'
]
=
[
'url_name'
,
'display name'
,
'answer id'
,
'answer'
,
'count'
]
dist
[
'data'
]
=
[
[
url_name
,
display_name
,
answer_id
,
a
,
answers
[
a
]]
for
(
url_name
,
display_name
,
answer_id
),
answers
in
sorted
(
dist
.
items
())
for
(
url_name
,
display_name
,
answer_id
),
answers
in
sorted
(
course_answer_distributions
.
items
())
for
a
in
answers
]
return
dist
...
...
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