Commit 37ae88e2 by Justin Riley

select assignments that have been seen or failed

Update get_assignments_attempted_and_failed to fetch only assignments
that have been visited by the student and that were not attempted OR
were failed.
parent ea4d0de3
......@@ -340,8 +340,7 @@ class ProctorModuleInfo(object):
status = self.get_student_status(student)
failed = [self._get_od_for_assignment(student, a)
for a in status['assignments']
if a['earned'] is None or a['possible'] is None or
a['earned'] != a['possible']]
if a['visited'] and a['earned'] != a['possible']]
for f in failed:
log.info(
"Student %s Assignment %s attempted '%s' but failed "
......
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