Commit 8099d616 authored by Joerell Frank Yee Lao's avatar Joerell Frank Yee Lao

Changed the problem wherein the assignments page displays passing scores with decimals

parent e02b3d58
......@@ -15,7 +15,7 @@ def index(request):
if i.course_code == j.course.course_code:
j.passing_score = j.max_points*0.6
j.save()
message += f'Assignment Name: {j.name} <br/> Decription: {j.description} <br/> Perfect Score: {j.max_points} <br/> Passing Score: {j.passing_score} <br/>'
message += f'Assignment Name: {j.name} <br/> Decription: {j.description} <br/> Perfect Score: {j.max_points} <br/> Passing Score: {int(j.passing_score)} <br/>'
message += f'Course/Section: {i.course_code} {i.course_title} {i.section} <br/>'
message += '<br/>'
......
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