diff --git a/forum/views.py b/forum/views.py index 2e8d34b..b4dd2c1 100644 --- a/forum/views.py +++ b/forum/views.py @@ -98,7 +98,7 @@ def __init__(self, student, assignment): self.grade = self.grade.first() if self.grade.earned_points: self.grade = self.grade.earned_points - self.percentgrade = self.grade * 100 / assignment.total_points + self.percentgrade = float(self.grade) * 100 / float(assignment.total_points) else: self.grade = "--" self.percentgrade = "--"