Merge pull request #9261 from edx/peter-fogg/test-rc-fix

Test Cale's RC fix.
This commit is contained in:
Peter Fogg
2015-08-10 22:08:42 -04:00

View File

@@ -1212,7 +1212,9 @@ def submission_history(request, course_id, student_username, location):
# This is ugly, but until we have a proper submissions API that we can use to provide
# the scores instead, it will have to do.
scores = list(StudentModuleHistory.objects.filter(
student_module__module_state_key=usage_key
student_module__module_state_key=usage_key,
student_module__student__username=student_username,
student_module__course_id=course_key
).order_by('-id'))
if len(scores) != len(history_entries):