.
This commit is contained in:
+3
-3
@@ -37,9 +37,9 @@ def image_directory_path(instance, filename):
|
|||||||
return u"rapids/picture/{0}".format(filename)
|
return u"rapids/picture/{0}".format(filename)
|
||||||
|
|
||||||
|
|
||||||
def get_answer_compare(string):
|
def get_answer_compare(s):
|
||||||
s = string.strip().lower()
|
s = s.strip().lower()
|
||||||
s = s.translate(str.maketrans('', '', string.punctuation.replace("#", "")))
|
s = s.translate(str.maketrans('', '', s.punctuation.replace("#", "")))
|
||||||
return s
|
return s
|
||||||
|
|
||||||
class Abnormality(models.Model):
|
class Abnormality(models.Model):
|
||||||
|
|||||||
Reference in New Issue
Block a user