Commit a31ef26b by David Ormsbee

Merge pull request #1249 from edx/fix/cdodge/progress-perf

we are already being passed in the module descriptor so we don't need to...
parents bd5abc89 a93a848e
...@@ -283,7 +283,7 @@ def progress_summary(student, request, course, field_data_cache): ...@@ -283,7 +283,7 @@ def progress_summary(student, request, course, field_data_cache):
# TODO: We need the request to pass into here. If we could forego that, our arguments # TODO: We need the request to pass into here. If we could forego that, our arguments
# would be simpler # would be simpler
course_module = get_module(student, request, course.location, field_data_cache, course.id, depth=None) course_module = get_module_for_descriptor(student, request, course, field_data_cache, course.id)
if not course_module: if not course_module:
# This student must not have access to the course. # This student must not have access to the course.
return None return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment