Skip to content
Snippets Groups Projects
Commit f3567df4 authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

Merge branch '318-exporting-error' into 'master'

Fix error while exporting with no students

Closes #318

See merge request zesje/zesje!156
parents 63f560a8 7e13416a
No related branches found
No related tags found
1 merge request!21Master->develop (this MR contains no useful information)
Pipeline #18105 passed with warnings
...@@ -68,7 +68,7 @@ def full_exam_data(exam_id): ...@@ -68,7 +68,7 @@ def full_exam_data(exam_id):
if not data: if not data:
# No students were assigned. # No students were assigned.
columns = [] columns = []
for problem in exam.problems.order_by(Problem.id): for problem in exam.problems: # Sorted by problem.id
if not len(problem.feedback_options): if not len(problem.feedback_options):
# There is no possible feedback for this problem. # There is no possible feedback for this problem.
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment