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
44ad05ae
Commit
44ad05ae
authored
Jun 28, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make gradesheet work again
parent
9d279417
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
lms/djangoapps/courseware/views.py
+15
-6
No files found.
lms/djangoapps/courseware/views.py
View file @
44ad05ae
...
...
@@ -39,12 +39,21 @@ def gradebook(request):
coursename
=
multicourse_settings
.
get_coursename_from_request
(
request
)
student_objects
=
User
.
objects
.
all
()[:
100
]
student_info
=
[{
'username'
:
s
.
username
,
'id'
:
s
.
id
,
'email'
:
s
.
email
,
'grade_info'
:
grades
.
grade_sheet
(
s
,
coursename
),
'realname'
:
UserProfile
.
objects
.
get
(
user
=
s
)
.
name
}
for
s
in
student_objects
]
student_info
=
[]
coursename
=
multicourse_settings
.
get_coursename_from_request
(
request
)
course_location
=
multicourse_settings
.
get_course_location
(
coursename
)
for
student
in
student_objects
:
student_module_cache
=
StudentModuleCache
(
student
,
keystore
()
.
get_item
(
course_location
))
course
,
_
,
_
,
_
=
get_module
(
request
.
user
,
request
,
course_location
,
student_module_cache
)
student_info
.
append
({
'username'
:
student
.
username
,
'id'
:
student
.
id
,
'email'
:
student
.
email
,
'grade_info'
:
grades
.
grade_sheet
(
student
,
course
,
student_module_cache
),
'realname'
:
UserProfile
.
objects
.
get
(
user
=
student
)
.
name
})
return
render_to_response
(
'gradebook.html'
,
{
'students'
:
student_info
})
...
...
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