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