This commit is contained in:
Ross
2021-07-07 16:14:47 +01:00
parent 4cfb7d6f7d
commit 694700fbec
+3 -3
View File
@@ -37,9 +37,9 @@ def image_directory_path(instance, filename):
return u"rapids/picture/{0}".format(filename)
def get_answer_compare(string):
s = string.strip().lower()
s = s.translate(str.maketrans('', '', string.punctuation.replace("#", "")))
def get_answer_compare(s):
s = s.strip().lower()
s = s.translate(str.maketrans('', '', s.punctuation.replace("#", "")))
return s
class Abnormality(models.Model):