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
b65577f2
Commit
b65577f2
authored
Sep 18, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests for fast grading.
parent
1e0932b7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
lms/djangoapps/courseware/grades.py
+7
-0
lms/djangoapps/courseware/views.py
+4
-0
No files found.
lms/djangoapps/courseware/grades.py
View file @
b65577f2
...
...
@@ -237,6 +237,10 @@ def progress_summary(student, request, course, grader, student_module_cache):
course: An XModule containing the course to grade
student_module_cache: A StudentModuleCache initialized with all
instance_modules for the student
If the student does not have access to load the course module, this function
will return None.
"""
...
...
@@ -245,6 +249,9 @@ def progress_summary(student, request, course, grader, student_module_cache):
course_module
=
get_module
(
student
,
request
,
course
.
location
,
student_module_cache
,
course
.
id
)
if
not
course_module
:
# This student must not have access to the course.
return
None
chapters
=
[]
# Don't include chapters that aren't displayable (e.g. due to error)
...
...
lms/djangoapps/courseware/views.py
View file @
b65577f2
...
...
@@ -460,6 +460,10 @@ def progress(request, course_id, student_id=None):
course
.
grader
,
student_module_cache
)
grade_summary
=
grades
.
grade
(
student
,
request
,
course
,
student_module_cache
)
if
courseware_summary
is
None
:
#This means the student didn't have access to the course (which the instructor requested)
raise
Http404
context
=
{
'course'
:
course
,
'courseware_summary'
:
courseware_summary
,
'grade_summary'
:
grade_summary
,
...
...
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