This commit is contained in:
Pedro Fonseca
2024-01-06 19:01:31 +00:00
parent ac27239787
commit efef92343a

4
app.py
View File

@@ -696,6 +696,10 @@ def fetch_answer_tips():
@app.route('/grading_summary', methods=['POST']) @app.route('/grading_summary', methods=['POST'])
@jwt_required() @jwt_required()
def grading_summary(): def grading_summary():
# Body Format
# {'sections': Array of {'code': key, 'name': name, 'grade': grade}}
# Output Format
# {'sections': Array of {'code': key, 'name': name, 'grade': grade, 'evaluation': evaluation, 'suggestions': suggestions}}
try: try:
return calculate_grading_summary(request.get_json()) return calculate_grading_summary(request.get_json())
except Exception as e: except Exception as e: