Débug doublon dans les listing par étudiants
This commit is contained in:
@@ -78,7 +78,12 @@ class student_eval_list(LoginRequiredMixin,ListView):
|
||||
for object in self.get_queryset():
|
||||
object.get_all_evals_for_student()
|
||||
object.get_mirror_eval(object.a_evals)
|
||||
print(object.mirrored)
|
||||
if object.mirrored and int(object.nEval_Mode) == 1:
|
||||
continue
|
||||
else:
|
||||
context['my_objects'].append(object)
|
||||
|
||||
context["uuid"] = object.uuid
|
||||
|
||||
|
||||
@@ -101,6 +106,8 @@ def export_pdf_all(request,pk):
|
||||
for record in records:
|
||||
record.get_all_evals_for_student()
|
||||
record.get_mirror_eval(record.a_evals)
|
||||
if record.mirrored and int(object.nEval_Mode) == 1:
|
||||
continue
|
||||
objects.append(record)
|
||||
return render_to_pdf(template_name,{"objects": objects, })
|
||||
|
||||
|
Reference in New Issue
Block a user