This commit is contained in:
Ross
2021-02-01 12:32:42 +00:00
parent 9abcf32ba5
commit e3065bc4ae
+8 -3
View File
@@ -539,6 +539,9 @@ def loadJsonAnswer(answer):
if posted_answer == "Normal":
normal = True
posted_answer = ""
# We can ignore the first ab
elif answer["qidn"] == "1" and posted_answer == "Abnormal":
return False
if not exiting_answers:
@@ -593,9 +596,11 @@ def postExamAnswers(request):
for answer in json.loads(request.POST.get("answers")):
ret = loadJsonAnswer(answer)
if ret is not True:
return ret
n = n + 1
#if ret is not True:
# return ret
if ret:
n = n + 1
# print(UserAnswer.objects.filter(exam__id=q["eid"]))
# print(request.urlencode())