Commit 7e13416a authored by Hugo Kerstens's avatar Hugo Kerstens

Fix error while exporting with no students

parent 63f560a8
......@@ -68,7 +68,7 @@ def full_exam_data(exam_id):
if not data:
# No students were assigned.
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):
# There is no possible feedback for this problem.
continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment