a few fixes for exam marking
This commit is contained in:
+3
-3
@@ -579,7 +579,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
data = {
|
||||
"status": "success",
|
||||
"publish_results": exam.publish_results,
|
||||
"name": exam,
|
||||
"name": str(exam),
|
||||
"id": exam.id,
|
||||
}
|
||||
return JsonResponse(data, status=200)
|
||||
@@ -601,7 +601,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
data = {
|
||||
"status": "success",
|
||||
"active": exam.active,
|
||||
"name": exam,
|
||||
"name": str(exam),
|
||||
"id": exam.id,
|
||||
}
|
||||
return JsonResponse(data, status=200)
|
||||
@@ -1520,7 +1520,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
obj["multi_question_json"] = h
|
||||
active_exams["exams"].append(obj)
|
||||
|
||||
if json == False:
|
||||
if json is False:
|
||||
return active_exams["exams"]
|
||||
|
||||
return JsonResponse(active_exams)
|
||||
|
||||
Reference in New Issue
Block a user