Start on level exam for utas.

This commit is contained in:
Cristiano Ferreira
2024-06-10 19:30:41 +01:00
parent 4ff3b02a1d
commit 9bc06d8340
2 changed files with 62 additions and 3 deletions

15
app.py
View File

@@ -1013,6 +1013,21 @@ def get_level_exam():
except Exception as e:
return str(e)
@app.route('/level_utas', method=['GET'])
@jwt_required()
def get_level_utas():
try:
number_of_exercises = 45
mc_exercises = gen_multiple_choice_level(number_of_exercises)
return {
"exercises": [mc_exercises],
"isDiagnostic": False,
"minTimer": 25,
"module": "level"
}
except Exception as e:
return str(e)
@app.route('/fetch_tips', methods=['POST'])
@jwt_required()