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

Fix submision count in exam api and improve docs

parent b6c67c6f
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,8 @@ class ExamConfig(Resource):
exam ID
name : str
exam name
submissions: int
Number of submissions
yaml : str
YAML config
"""
......@@ -40,6 +42,7 @@ class ExamConfig(Resource):
return {
'id': exam_id,
'name': exam.name,
'submissions': exam.submissions.count(),
'yaml': yml
}
......@@ -90,6 +93,8 @@ class Exams(Resource):
exam name
name : str
exam ID
submissions : int
Number of submissions
"""
return [
{
......
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