Skip to content
Snippets Groups Projects
Commit 7686269d authored by Joseph Weston's avatar Joseph Weston
Browse files

correctly get request parsers with 'self'

parent 7bdc938f
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ class ExamConfig(Resource):
yaml : str
processed YAML config
"""
args = patch_parser.parse_args()
args = self.patch_parser.parse_args()
exam = Exam.get(id=exam_id)
if not exam:
......@@ -128,7 +128,7 @@ class Exams(Resource):
processed config
"""
args = post_parser.parse_args()
args = self.post_parser.parse_args()
yml = yaml_helper.load(args['yaml'])
......
......@@ -59,7 +59,7 @@ class Graders(Resource):
first_name: str
last_name: str
"""
args = post_parser.parse_args()
args = self.post_parser.parse_args()
try:
Grader(first_name= args['first_name'],
......
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