Ejemplo n.º 1
0
def get_student():
    hackbright_app.connect_to_db()
    student_github = request.args.get("student")
    row = hackbright_app.get_student_by_github(student_github)
    grade = hackbright_app.show_all_grades(row[0], row[1])
    html = render_template("student_info.html", first_name=row[0], last_name=row[1], github=row[2], grade= grade)
    return html
Ejemplo n.º 2
0
def get_grades():
    hackbright_app.connect_to_db()
    student_github = request.args.get("github")
    rows = hackbright_app.show_all_grades(student_github)
    html = render_template("student_info.html", student_github=student_github,
                                                grades=rows)
    return html
Ejemplo n.º 3
0
def get_student():
    hackbright_app.connect_to_db()
    student_github = request.args.get("github") #fancy dictionary 
    row = hackbright_app.get_student_by_github(student_github)
    grades = hackbright_app.show_all_grades(student_github)
    html = render_template("student_info.html", first_name=row[0], 
        last_name=row[1], github=row[2], grades=grades)
    return html
Ejemplo n.º 4
0
def get_student():
    hackbright_app.connect_to_db()
    student_github = request.args.get("github")
    row = hackbright_app.get_student_by_github(student_github)
    # row[0] = first name, row[1] = last name
    grades = hackbright_app.show_all_grades(row['firstname'], row['lastname'])
    html = render_template("student_info.html", first_name=row['firstname'], 
                                last_name=row['lastname'], github=row['github'], grades=grades)
    return html
def get_student():
    hackbright_app.connect_to_db()
    student_github = request.args.get("student")
    row = hackbright_app.get_student_by_github(student_github)
    grades = hackbright_app.show_all_grades(row[0], row[1])

    html = render_template("student_info.html",
                           first_name=row[0],
                           last_name=row[1],
                           github=row[2],
                           grades=grades)

    return html
Ejemplo n.º 6
0
def get_student():
    hackbright_app.connect_to_db()
    github_name = request.args.get("github")

    student = hackbright_app.get_student_by_github(github_name)
    grades = hackbright_app.show_all_grades(github_name)

    html = render_template("student_info.html",
        first_name=student[0],
        last_name=student[1],
        github=student[2],
        grades=grades,
    )
    return html
Ejemplo n.º 7
0
def get_grades():
    hackbright_app.connect_to_db()
    project_title = request.args.get("project_title")
    project_grades = hackbright_app.show_all_grades(project_title)
    html = render_template("project_grades.html", project_title=project_title, project_grades = project_grades)
    return html