Commit b8918cae by Justin Riley

minor clean up to attempt_stats

parent aee6a83f
......@@ -70,9 +70,9 @@ def compute_stats(course_id):
for problem in all_problems:
stat = Stats()
smset0 = StudentModule.objects.filter(module_state_key=problem.id,
student__is_staff=False)
smset = smset0.exclude(student__groups__name__in=exclude_groups)
smset = StudentModule.objects.filter(
module_state_key=problem.id, student__is_staff=False
).exclude(student__groups__name__in=exclude_groups)
for sm in smset:
stat.nassigned += 1
ret = update_stats(sm, stat)
......
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