Ejemplo n.º 1
0
def get_student():
    hackbright_app.connect_to_db()
    student_github = request.args.get("github")
    row = hackbright_app.get_student_by_github(student_github)
    row2 = hackbright_app.show_grade(student_github)
    print "row2 _____!!!___!!__!!__%r" % row2
    html = render_template("student_info.html", first_name=row[0], last_name=row[1], github=row[2], grade=row2[:])
    return html
Ejemplo n.º 2
0
def get_student():
    hackbright_app.connect_to_db()
    student_github = request.args.get("github")
    row = hackbright_app.get_student_by_github(student_github)
    rows = hackbright_app.show_grade(student_github) # list of tuples
    html = render_template("student_info.html", first_name=row[0],
                                                last_name=row[1],
                                                github=row[2],
                                                projects=rows)
    return html
Ejemplo n.º 3
0
def get_student(student_github=None):
    hackbright_app.connect_to_db()
    if not student_github:
        student_github = request.args.get("github")

    profile = hackbright_app.get_student_by_github(student_github)
    grades = hackbright_app.show_grade(student_github)

    html = render_template("student_info.html", first_name=profile[0], last_name=profile[1], github=profile[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)
    rows = hackbright_app.show_grade(student_github)  # list of tuples
    html = render_template("student_info.html",
                           first_name=row[0],
                           last_name=row[1],
                           github=row[2],
                           projects=rows)
    return html