Commit 3fd26179 authored by Joseph Weston's avatar Joseph Weston

make call to 'jsonify' more pythonic

parent 92745363
......@@ -53,8 +53,8 @@ def post_graders():
except KeyError:
abort(400)
return jsonify({
'id': new_grader.id,
'first_name': grader_spec['first_name'],
'last_name': grader_spec['last_name'],
})
return jsonify(
id=new_grader.id,
first_name=new_grader.first_name,
last_name=new_grader.last_name,
)
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