basic rapid integration testing
This commit is contained in:
+4
-1
@@ -1371,6 +1371,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
n = 0
|
||||
|
||||
for answer in json.loads(request.POST.get("answers")):
|
||||
print("ANSWER", answer)
|
||||
|
||||
eid = int(answer["eid"].split("/")[1])
|
||||
uid = False
|
||||
@@ -1454,7 +1455,9 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
ans = existing_answers[0]
|
||||
if answer["qidn"] == "1":
|
||||
ans.normal = normal
|
||||
ans.answer = ""
|
||||
# Only wipe the answer text if the new answer is "Normal"
|
||||
if normal:
|
||||
ans.answer = ""
|
||||
elif answer["qidn"] == "2" and not ans.normal:
|
||||
ans.answer = posted_answer
|
||||
case "anatomy":
|
||||
|
||||
Reference in New Issue
Block a user