This commit is contained in:
Ross
2025-01-06 11:14:34 +00:00
parent f0c5964a5a
commit d891c7b9ee
11 changed files with 52 additions and 19 deletions
+3
View File
@@ -22,6 +22,7 @@ from collections import defaultdict
from helpers.images import image_as_base64
import reversion
import urllib.parse
image_storage = FileSystemStorage(
# Physical file location ROOT
@@ -540,6 +541,8 @@ class UserAnswer(UserAnswerBase):
# s = self.answer.lower().strip()
# s = s.translate(str.maketrans('', '', string.punctuation))
# return s
def get_answer_url_safe(self):
return urllib.parse.quote(self.answer_compare)
def get_answer_string(self):
return self.answer