lost track of changes...
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ def create_cid_user_and_groups(db):
|
||||
|
||||
cid_user_1000 = CidUser.objects.create(cid=1000, passcode="ABCD", group=group1)
|
||||
cid_user_1001 = CidUser.objects.create(cid=1001, passcode="EFGH", group=group1)
|
||||
cid_user_2001 = CidUser.objects.create(cid=2001, passcode="EFGH", group=group2)
|
||||
cid_user_2001 = CidUser.objects.create(cid=2001, passcode="IJKL", group=group2)
|
||||
|
||||
assert cid_user_1000.cid == 1000
|
||||
assert cid_user_1001.cid == 1001
|
||||
|
||||
+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