Consider upgrading to python 3.8
It would help us to use walrus operator in the pattern:
if (exam := Exam.query.get(exam_id)) is None:
return dict(status=404, message='Exam does not exist.'), 404
that is used throughout the API.
It would help us to use walrus operator in the pattern:
if (exam := Exam.query.get(exam_id)) is None:
return dict(status=404, message='Exam does not exist.'), 404
that is used throughout the API.