示例#1
0
def get_project_grades():
    hackbright_app.connect_to_db()
    project = request.form.get("project")
    rows = hackbright_app.get_all_students()
    return render_template("project_grades.html", project_name = project,
                                            row = rows)
def get_all_students():
    hackbright_app.connect_to_db()
    rows = hackbright_app.get_all_students()
    return render_template("all_students.html", student_data = rows)
def list_all_students():
    hackbright_app.connect_to_db()
    students = hackbright_app.get_all_students()
    html = render_template("all_students.html", students=students)
    return html