.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
- Cookie policy
|
||||
- Sort out conditions / signs / findings etc
|
||||
- Search by image id / name / etc
|
||||
|
||||
- Add markers directly to exam
|
||||
|
||||
|
||||
# Future
|
||||
|
||||
+3
-3
@@ -640,14 +640,14 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
def exam_list(self, request, all=False):
|
||||
if not self.check_user_access(request.user):
|
||||
# raise PermissionDenied
|
||||
exam_list = self.Exam.objects.filter(author__id=request.user.id).order_by(
|
||||
exam_list = self.Exam.objects.filter(author__id=request.user.id, exam_mode=True).order_by(
|
||||
"name"
|
||||
)
|
||||
else:
|
||||
exam_list = self.Exam.objects.prefetch_related("valid_user_users", "valid_cid_users").all().order_by("name")
|
||||
exam_list = self.Exam.objects.prefetch_related("valid_user_users", "valid_cid_users").filter(exam_mode=True).order_by("name")
|
||||
|
||||
if not all:
|
||||
exam_list = exam_list.filter(exam_mode=True, archive=False).order_by("name")
|
||||
exam_list = exam_list.filter(archive=False).order_by("name")
|
||||
|
||||
marking = False
|
||||
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
|
||||
<div id="stats-plot">{{exam.stats_graph|safe}}</div>
|
||||
|
||||
Questions: <span id="question-number">{{question_number}}</span><br />
|
||||
Available marks: {{exam_stats_max_possible}}<br />
|
||||
Available marks: {{exam.stats_max_possible}}<br />
|
||||
Mean: {{exam.stats_mean}}, Median {{exam.stats_median}}, Mode {{exam.stats_mode}}<br />
|
||||
Top score: {{exam.stats_max}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user