Commit 5aba0185 by Matt Drayer

mattdrayer/MCKIN-3046-2: Return false complete_status when grade is zero

parent 92e4b5dc
......@@ -936,7 +936,7 @@ class UsersCoursesGradesList(SecureAPIView):
response_data = []
for record in queryset:
complete_status = False
if record.proforma_grade <= record.grade + grade_complete_match_range:
if record.grade and (record.proforma_grade <= record.grade + grade_complete_match_range):
complete_status = True
response_data.append(
{
......
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