コード例 #1
0
ファイル: webapp.py プロジェクト: dslevi/SQLite_Lesson_2
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)
コード例 #2
0
def get_all_students():
    hackbright_app.connect_to_db()
    rows = hackbright_app.get_all_students()
    return render_template("all_students.html", student_data = rows)
コード例 #3
0
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