This commit is contained in:
Ross
2022-01-10 11:14:02 +00:00
parent c61b45634c
commit 76ddfefef4
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -212,6 +212,8 @@ class AnatomyQuestion(models.Model):
]
)
user_answers.discard("")
unmarked_answers = user_answers - self.get_marked_answers()
return unmarked_answers
+1 -1
View File
@@ -679,7 +679,7 @@ class CidUserAnswer(models.Model):
self.answer = self.answer.strip()
s = self.answer.lower()
s = s.translate(str.maketrans("", "", string.punctuation.replace("#", "")))
s = s.translate(str.maketrans("", "", string.punctuation.replace("#", ""))).strip()
self.answer_compare = s