improve suggest answers (and fix some other issues)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user