Beispiel #1
0
def get_student():
    """Show information about a student."""

    github = request.args.get('github')

    first, last, github = hackbright.get_student_by_github(github)
    grades = hackbright.get_all_grades_by_github(github)

    html = render_template("student_info.html",
                           first=first,
                           last=last,
                           github=github,
                           grades=grades)
    return html
def get_student():
    """Show information about a student."""

    github = request.args.get('github', 'jhacks')
    first, last, github = hackbright.get_student_by_github(github)


    all_grades = hackbright.get_all_grades_by_github(github)
    project_list=[]
    grade_list=[]
    for item in all_grades:
        project_list.append(item[0])
        grade_list.append(item[1])

    html = render_template("student_info.html",
                            first=first,
                            last=last,
                            github=github,
                            grade_list=grade_list,
                            project_list=project_list)
    return html
def get_student(github):
    """Show information about a student."""

    first, last, github = hackbright.get_student_by_github(github)
    grades = hackbright.get_all_grades_by_github(github)
    return render_template("student_info.html", first=first, last=last, github=github, grades=grades)