Ejemplo n.º 1
0
def add_grade():
    hackbright_app.connect_to_db()
    project_title = request.args.get("project")
    grade = request.args.get("grade")
    github = request.args.get("github")
    hackbright_app.give_grade(github, project_title, grade)
    return get_student(github)
Ejemplo n.º 2
0
def give_grade():
    hackbright_app.connect_to_db()
    #first_name, last_name, project_title, grade
    student_name = request.args.get("student_name").split()
    project_title = request.args.get("project_title")
    grade = request.args.get("grade")
    hackbright_app.give_grade(student_name[0], student_name[1], project_title, grade)
    return redirect("/student?student_name=%s" %" ".join(student_name))
Ejemplo n.º 3
0
def addgrade():
    hackbright_app.connect_to_db()
    student_github = request.args.get("github")
    project_title = request.args.get("project")
    student_grade = request.args.get("grade")
    hackbright_app.give_grade(student_github, project_title, student_grade)
    html = render_template("addedgrade.html", project_title = project_title, 
            student_github = student_github, student_grade = student_github)
    return html
Ejemplo n.º 4
0
def create_grade():
    hackbright_app.connect_to_db()
    github=request.args.get("github")
    title=request.args.get("title")
    grade=request.args.get("grade")
    row = hackbright_app.give_grade(github, title, grade)
    html = render_template("grade_confirmation_screen.html", firstname=row[0],
                        lastname=row[1], title=row[2], grade=row[3])
    return html
Ejemplo n.º 5
0
def new_grade():
    student_github = request.args.get("github")
    project_title = request.args.get("project")
    grade = request.args.get("grade")
    hackbright_app.connect_to_db()
    if hackbright_app.give_grade(student_github, project_title, grade):
        html = render_template("new_grade.html", github=student_github,
                                                title=project_title,
                                                grade=grade)
    return html
Ejemplo n.º 6
0
def grade_student():
    hackbright_app.connect_to_db()
    github = request.args.get("student_github")
    title = request.args.get("project_title")
    grade = request.args.get("grade")

    new_grade_info = hackbright_app.give_grade(github, title, grade)
    html = render_template("student_grade_info.html", github = new_grade_info[0],
                                            title = new_grade_info[1],
                                            grade = new_grade_info[2])
    return html
Ejemplo n.º 7
0
def new_grade():
    student_github = request.args.get("github")
    project_title = request.args.get("project")
    grade = request.args.get("grade")
    hackbright_app.connect_to_db()
    if hackbright_app.give_grade(student_github, project_title, grade):
        html = render_template("new_grade.html",
                               github=student_github,
                               title=project_title,
                               grade=grade)
    return html
Ejemplo n.º 8
0
def create_grade():
    hackbright_app.connect_to_db()
    github = request.args.get("github")
    title = request.args.get("title")
    grade = request.args.get("grade")
    row = hackbright_app.give_grade(github, title, grade)
    html = render_template("grade_confirmation_screen.html",
                           firstname=row[0],
                           lastname=row[1],
                           title=row[2],
                           grade=row[3])
    return html