Exemple #1
0
def list_stats():
    data = {
        'users': User.count(),
        'students': Student.count(),
        'courses': Course.count(),
        'classes': Turma.count(),
        'responded': CourseApplication.count()
    }

    return jsonify(data), 200
Exemple #2
0
def list_stats():
    data = {
        'users': User.count(),
        'students': Student.count(),
        'courses': Course.count(),
        'classes': Turma.count(),
        'responded': CourseApplication.count()
    }

    return render_template('status.html', data=data)