Commit 32b9a942 authored by Katrina Bernice Tan's avatar Katrina Bernice Tan

Cleaned code for Assignment models and views

parent b3a1230f
......@@ -24,5 +24,4 @@ class Assignment(models.Model):
@property
def passing_score(self):
#return self.passing_score == 69
return self.max_points*.6
......@@ -12,4 +12,4 @@ def index(request):
print += f"<br /> Assignment name: {i.name} <br /> Description: {i.description} <br /> Perfect score: {i.max_points} <br /> Passing score: {i.passing_score} <br /> Course/Section: {i.course} <br />"
return HttpResponse(print)
# Create your views here.
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