Example #1
0
def get_project_info():
	hackbright_app.connect_to_db()
	project = request.args.get("project")
	row = hackbright_app.get_grades_by_project(project)
	html = render_template("project_info.html", project_list=row)

	return html
Example #2
0
def get_project():
    hackbright_app.connect_to_db()
    project_name = request.args.get("name")
    grades = hackbright_app.get_grades_by_project(project_name)

    return render_template("project_info.html", name = project_name,
                                                grades = grades)
Example #3
0
def get_project():  #this successfully returns github, grade for the requested project
    hackbright_app.connect_to_db()
    project_name = request.args.get("project_title")    # key in url
    # student_github = request.args.get("github")
    # student_name_return = hackbright.app.get_student_by_github(student_github)
    rows_return = hackbright_app.get_grades_by_project(project_name)    #returns a list of rows
    html = render_template("project_info.html", project_name=project_name, rows_return=rows_return)  # github, grade
    return html
Example #4
0
def get_grades_byproject():
    hackbright_app.connect_to_db()
    project = request.args.get("title")
    rows = hackbright_app.get_grades_by_project(project)
    html = render_template("project_grades.html", rows=rows)
    return html
Example #5
0
def get_grades_byproject():
    hackbright_app.connect_to_db()
    project = request.args.get("title")
    rows = hackbright_app.get_grades_by_project(project)
    html = render_template("project_grades.html", rows=rows)
    return html
import hackbright_app

hackbright_app.connect_to_db()  #

print hackbright_app.get_grades_by_project("Markov")
Example #7
0
def get_project_grades(project_title):
    hackbright_app.connect_to_db()
    data = hackbright_app.get_grades_by_project(project_title)
    html = render_template("project_grades.html", project_grades=data)
    return html