Skip to content

Commit

Permalink
Fix report evaluation count
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-gardener committed Oct 7, 2017
1 parent ae3b504 commit 7fb7930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compair/api/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def participation_report(course, assignments, group_name):
if user.id not in comparisons or assignment.id not in comparisons[user.id]:
compared = 0
else:
compared = comparisons[user.id][assignment.id] / len(criteria[assignment.id])
compared = comparisons[user.id][assignment.id]
temp.append(str(compared))
# self-evaluation
if assignment.enable_self_evaluation:
Expand Down
2 changes: 1 addition & 1 deletion compair/tests/api/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ReportAPITest(ComPAIRAPITestCase):
def setUp(self):
super(ReportAPITest, self).setUp()
self.fixtures = TestFixture().add_course(num_students=30, num_assignments=2, num_additional_criteria=1, num_groups=2, num_answers=25,
with_draft_student=True, with_comments=True)
with_draft_student=True, with_comments=True, with_comparisons=True)
self.url = "/api/courses/" + self.fixtures.course.uuid + "/report"
self.files_to_cleanup = []

Expand Down

0 comments on commit 7fb7930

Please sign in to comment.