From 694700fbecbce7cd92007a7fff624c2650b392a6 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 7 Jul 2021 16:14:47 +0100 Subject: [PATCH] . --- rapids/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rapids/models.py b/rapids/models.py index 0eeeb10c..996a56a2 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -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):