Commit b8918cae by Justin Riley

minor clean up to attempt_stats

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