This commit is contained in:
Ross
2021-03-06 11:38:17 +00:00
parent 2e13ee520f
commit 79de8bccad
+4 -2
View File
@@ -563,8 +563,10 @@ def loadJsonAnswer(answer):
# Update an existing answer
# should never be more than one (famous last words)
ans = exiting_answers[0]
ans.normal = normal
ans.answer = posted_answer
if answer["qidn"] == "1":
ans.normal = normal
elif answer["qidn"] == "2":
ans.answer = posted_answer
ans.full_clean()
ans.save()