def get_projects(): hackbright_app.connect_to_db() project = request.args.get("project") rows = hackbright_app.get_project_grades(project) html = render_template("project_info.html", project_title = project, project_grades = rows ) return html
def get_project_grades(): hackbright_app.connect_to_db() project_title = request.args.get("project_title") rows = hackbright_app.get_project_grades(project_title) project_info = hackbright_app.get_project_by_title(project_title) print "PROJECT INFO", project_info title = project_info[0] description = project_info[1] max_grade = project_info[2] return render_template("project_grades.html", student_grades=rows, title=title, description=description, max_grade=max_grade)
def get_project(): hackbright_app.connect_to_db() project = request.args.get("project") project_details = hackbright_app.get_project_grades(project) description = hackbright_app.get_projects_by_title(project) html = render_template( "project_info.html", project_title=description[0], description=description[1], max_grade=description[2], students=project_details, ) return html