.
This commit is contained in:
@@ -212,6 +212,8 @@ class AnatomyQuestion(models.Model):
|
||||
]
|
||||
)
|
||||
|
||||
user_answers.discard("")
|
||||
|
||||
unmarked_answers = user_answers - self.get_marked_answers()
|
||||
|
||||
return unmarked_answers
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user