lost track of changes...
This commit is contained in:
+5
-5
@@ -287,16 +287,16 @@ def exam_submit(request):
|
||||
|
||||
try:
|
||||
if exam_type == "anatomy":
|
||||
return AnatomyExamViews.postExamAnswers(request)
|
||||
return AnatomyExamViews.post_exam_answers(request)
|
||||
elif exam_type == "rapid":
|
||||
return RapidsExamsViews.postExamAnswers(request)
|
||||
return RapidsExamsViews.post_exam_answers(request)
|
||||
elif exam_type == "long":
|
||||
return LongsExamViews.postExamAnswers(request)
|
||||
return LongsExamViews.post_exam_answers(request)
|
||||
return JsonResponse({"success": False, "error": "Invalid exam type"})
|
||||
except ObjectDoesNotExist:
|
||||
return JsonResponse({"success": False, "error": "Invalid data"})
|
||||
|
||||
# postExamAnswers
|
||||
# post_exam_answers
|
||||
return JsonResponse({"success": False, "error": "Invalid data"})
|
||||
|
||||
|
||||
@@ -405,7 +405,7 @@ def answer_suggestion_submit(request):
|
||||
a.save()
|
||||
return JsonResponse({"success": True, "error": "Answer submited"})
|
||||
|
||||
# postExamAnswers
|
||||
# post_exam_answers
|
||||
return JsonResponse({"success": False, "error": "Invalid data"})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user