Coverage for app/controllers/admin/minor.py: 45%
11 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-07-11 17:51 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-07-11 17:51 +0000
1from flask import render_template, g, abort
3from app.controllers.admin import admin_bp
5from app.logic.minor import getMinorInterest, getMinorProgress
7@admin_bp.route('/admin/cceMinor', methods=['GET'])
8def manageMinor():
9 if not g.current_user.isAdmin:
10 abort(403)
12 interestedStudentsList = getMinorInterest()
13 interestedStudentEmailString = ';'.join([student['email'] for student in interestedStudentsList])
14 sustainedEngagement = getMinorProgress()
16 return render_template('/admin/cceMinor.html',
17 interestedStudentsList = interestedStudentsList,
18 interestedStudentEmailString = interestedStudentEmailString,
19 sustainedEngagement = sustainedEngagement,
20 )