Skip to content
Snippets Groups Projects
Commit b6c67c6f authored by Thomas Roos's avatar Thomas Roos
Browse files

Add number of submissions linked to exam to API

parent e2f62ae0
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,7 @@ class Exams(Resource):
{
'id': ex.id,
'name' : ex.name,
'submissions': ex.submissions.count()
}
for ex in Exam.select().order_by(Exam.id)
]
......
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