improve suggest answers (and fix some other issues)

This commit is contained in:
Ross
2025-01-20 09:54:56 +00:00
parent 9cb83b62d2
commit 0ca17c23b5
10 changed files with 114 additions and 21 deletions
+3
View File
@@ -340,6 +340,9 @@ class Answer(models.Model):
def get_answer_url_safe(self):
return urllib.parse.quote(self.answer_compare)
def get_constituent_words(self):
return self.answer_compare.split()
# def get_compare_string(self):
# s = self.answer.lower().strip()
# s = s.translate(str.maketrans('', '', string.punctuation))