Commit 2e5e6727 authored by Deokhyun Lee's avatar Deokhyun Lee

passing score is implemented based on perfect_score

parent 45fbb940
......@@ -23,10 +23,10 @@ class Assignment(models.Model):
def __str__(self):
return self.name
# calculates a passing score of 60%
# calculates a passing score of 60% based on perfect_score
@property
def passing_score_calculated(self):
return int(self.passing_score * 0.6)
return int(self.perfect_score * 0.6)
def save(self, *args, **kwarg):
# passing_score will be updated after save()
......
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