This commit is contained in:
Ross
2021-12-19 10:14:43 +00:00
parent 889db68a08
commit 07dbdfe0e4
4 changed files with 13 additions and 7 deletions
+3
View File
@@ -468,6 +468,9 @@ class CidUserAnswer(models.Model):
# s = s.translate(str.maketrans('', '', string.punctuation))
# return s
def get_answer_string(self):
return self.answer
def get_answer_score(self, cached=True):
if cached and self.score:
if self.score == Answer.MarkOptions.CORRECT: