def show_project_info(title):
    """Shows the title, discription, and max grade for a project given its title."""

    desc, max_grade = hackbright.get_project_by_title(title)[1:]
    grade_data = hackbright.get_student_scores_by_title(title)

    return render_template("project_info.html", title=title, desc=desc, max_grade=max_grade, grade_data=grade_data)
def get_project_info(project_title):
    """Get information about project from the title"""

    title, description, max_grade = hackbright.get_project_by_title(project_title)

    return render_template("project_info.html", title=title, 
                            description=description, max_grade=max_grade)
def project_details():
    """Show the detailed information about a project"""
    title = request.args.get("project")
    title, description, max_grade = hackbright.get_project_by_title(title)

    html = render_template("/project.html", title=title, description=description, max_grade=max_grade)
    return html
def project():

    title = request.args.get('title')
    project_info = hackbright.get_project_by_title(title)
    grade_info = hackbright.get_grades_by_title(title) 

    return render_template('project_info.html', project_info=project_info, grade_info=grade_info)
def return_project():
    """Add a student."""

    title = request.args.get('title')
    cheesecakes = hackbright.get_project_by_title(title)

    return render_template("project.html",
                            cheesecakes=cheesecakes)
def get_project():
    """List information about the project"""
    title = request.args.get('title')
    title, description, max_grade = hackbright.get_project_by_title(title)

    html = render_template("project_info.html", title=title, description=description, max_grade=max_grade)

    return html
Example #7
0
def get_project():
    """Show information about a project."""
    title = request.args.get("title")
    project_title, description, max_grade = hackbright.get_project_by_title(title)
    html = render_template(
        "project_info.html", project_title=project_title, description=description, max_grade=max_grade
    )
    return html
def display_project_info():
    title = request.args.get("title")
    title, description, max_grade = hackbright.get_project_by_title(title)
    rows = hackbright.get_grades_by_title(title)
    return render_template('project.html', title=title,
                            description=description,
                            max_grade=max_grade,
                            rows=rows)
def project_info():
    """List title, maximum grade, and description"""

    title = request.args.get('title', 'Markov')

    project_info = hackbright.get_project_by_title(title)

    return render_template("project_info.html",
                            project_info=project_info)
def display_project(proj_title):
    """Show info for the project clicked on"""
    title, description, max_grade= hackbright.get_project_by_title(proj_title)
    rows= hackbright.get_names_and_grades_by_title(title) # replace with new function that return student name and grade
    return render_template("project.html",
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           rows=rows)
def get_project():
	""" Display project info """
	title = request.args.get('title')
	project = hackbright.get_project_by_title(title)
	students = hackbright.get_student_completed_project(title)

	return render_template("project_page.html",
							project=project,
							students=students)
def get_project():

    title = request.args.get("title")
    title, description, max_grade = hackbright.get_project_by_title(title)
    
    return render_template("project_display.html",
                           title=title,
                           description=description,
                           max_grade=max_grade)
def display_project_details(project_title):
    """Display title, description, and max grade of project"""

    title, description, max_grade = hackbright.get_project_by_title(project_title)

    return render_template("project_info.html", 
                           title=title,
                           description=description,
                           max_grade=max_grade)
def display_project_info():
    """Display project information."""

    title = request.args.get("title")
    project_info = hackbright.get_project_by_title(title)
    student_grades = hackbright.get_grades_by_title(title)

    return render_template("project_info.html", 
                            project_info=project_info, 
                            student_grades=student_grades)
def get_project_info():
	"""Display information about particular projects."""
	
	title = request.args.get('title', 'Markov')
	project_info = hackbright.get_project_by_title(title)
	student_grades = hackbright.get_grades_by_title(title)

	return render_template('project_info.html',
							project_info=project_info,
							student_grades=student_grades)
def show_project():
    """Show Project info."""
    title = request.args.get('project')
    title, description, max_grade = hackbright.get_project_by_title(title)
    students = hackbright.get_grades_by_title(title)
    return render_template("project_info.html",
                            title=title,
                            description=description,
                            max_grade=max_grade,
                            students=students)
def show_project_details():
    """Shows details for project"""

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

    project_info = hackbright.get_project_by_title(title)
    description = project_info[2]
    grade = project_info[3]
    grades = hackbright.get_grades_by_title(title)

    return render_template('project_info.html', title=title, description=description, grade=grade, grades=grades)
def project_information():

    title = request.form.get('title')
    description = request.form.get('description') 
    max_grade = request.form.get('max_grade')
    project_template = hackbright.get_project_by_title(title)
    return render_template("project_information.html",
                            title=title,
                            description=description,
                            max_grade=max_grade,
                            project_template=project_template)
Example #19
0
def show_project_details(title):
    """Display project details: title, description, maximum grade."""

    title, description, max_grade = hackbright.get_project_by_title(title)
    student_grades = hackbright.get_grades_by_title(title)

    return render_template("project_info.html",
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           student_grades=student_grades)
def get_project(title):
    """Display project information"""

    title, description, max_grade = hackbright.get_project_by_title(title)

    html = render_template("project_info.html",
                           title=title,
                           description=description,
                           max_grade=max_grade)

    return html
def get_project():
    """Display information for a project."""

    project_title = request.args.get("project-title", "")
    title, description, max_grade = hackbright.get_project_by_title(project_title)
    grades = hackbright.get_grades_by_title(title)

    return render_template("project_info.html",
                           project_title=title,
                           project_description=description,
                           max_grade=max_grade,
                           grades=grades)
def get_project():
    """Show information about a project."""

    title = request.args.get('title')
    project_title, description, max_grade = hackbright.get_project_by_title(title)
    student_grades = hackbright.get_grades_by_title(title)
    html = render_template("project_info.html",
                           title=project_title,
                           description=description,
                           max_grade=max_grade,
                           student_grades=student_grades)
    return html
def get_project_info():
    """Show project information."""

    project = request.args.get("title")
    title, description, max_grade = hackbright.get_project_by_title(project)
    grades_by_github = hackbright.get_grades_by_title(project)

    return render_template("project_info.html",
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           grades=grades_by_github)
def show_project_info():
    """Show title, description, max grade and list of students of a project"""

    title = request.args.get('title')
    title, description, max_grade = hackbright.get_project_by_title(title)
    student_grades = hackbright.get_grades_by_title(title)

    return render_template("project_info.html",
                            title=title,
                            description=description,
                            max_grade=max_grade,
                            student_grades=student_grades)
def show_project():
    """Show details about a project."""

    title = request.args.get('title')
    title, description, max_grade = hackbright.get_project_by_title(title)
    student_grades = hackbright.get_grades_by_title(title)

    return render_template('project_details.html',
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           student_grades=student_grades)
Example #26
0
def list_project_details():
    """Listing title, description and max grade for a project"""
    title = request.args.get('title')
    project_list = hackbright.get_project_by_title(title)
    student_grades_list = hackbright.get_grades_by_title(title)

    print(student_grades_list)
    for student in student_grades_list:
        print('student', student[0], student[1])
    return render_template("project_page.html",
        project_list=project_list,
        student_grades_list=student_grades_list)
def show_project_info():
    """Show project information"""

    title = request.args.get('title')
    title, description, max_grade = hackbright.get_project_by_title(title)

    html = render_template("project_info.html",
                           title=title,
                           description=description,
                           max_grade=max_grade)

    return html
def get_project_info_from_db():
    """Show information about student's project."""

    title = request.args.get('title')
    project_title = hackbright.get_project_by_title(title)
    all_students_grades_by_project = hackbright.get_students_grades_by_project(title)

    html = render_template("project-info.html",
                            project_title=project_title,
                            all_students_grades_by_project=all_students_grades_by_project)

    return html
Example #29
0
def show_projects():

    title = request.args.get('title')
    title, description, max_grade = hackbright.get_project_by_title(title)

    grades = hackbright.get_grades_by_title(title)

    return render_template("project_info.html",
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           grades=grades)
def display_proj_info():
    """shows requested information about a project."""

    title = request.args.get('project')
    proj_info = hackbright.get_project_by_title(title)
    proj_grades = hackbright.get_grades_by_title(title)

    print proj_grades
    print proj_info
    return render_template("proj_info_display.html",
                           proj=proj_info,
                           grades=proj_grades)
def get_project(project_title):
	""" Provides the project title, description & maximum grade """

	title, description, max_grade = hackbright.get_project_by_title(project_title)
	list_of_grades = hackbright.get_grades_by_title(project_title)


	return render_template("project.html",
							title=title,
							description=description,
							max_grade=max_grade,
							list_of_grades=list_of_grades)
def get_projects(title):
    """Displays all project names, descriptions and max grades."""

    name, description, max_grade = hackbright.get_project_by_title(title)

    student_grades = hackbright.get_grades_by_title(title)

    return render_template("project_info.html",
                           name=name,
                           description=description,
                           max_grade=max_grade,
                           student_grades=student_grades)
Example #33
0
def project_delete():
	 """Check if project exists, delete a project."""
	 title = request.form.get("title")
	 check_title = hackbright.get_project_by_title(title)
	 if check_title:
	 	hackbright.delete_project_by_title(title)
	 	hackbright.delete_grades_by_title(title)
	 	flash(title + ' has been deleted')
	 	return redirect("/")
	 else: 
	 	flash('There is no project with that name in our records')
	 	return redirect("/delete-project")
def show_project_info():
    """Show information about a project."""

    project = request.args.get('project_title')

    project_title, description, max_grade = hackbright.get_project_by_title(
        project)

    return render_template("project_info.html",
                           project_title=project_title,
                           description=description,
                           max_grade=max_grade)
Example #35
0
def list_project_info(project):
    """List specific project information."""

    project_title, description, max_grade = hackbright.get_project_by_title(
        project)
    grades = hackbright.get_grades_by_title(project)

    return render_template('project.html',
                           project_title=project_title,
                           description=description,
                           max_grade=max_grade,
                           grades=grades)
Example #36
0
def view_project():
    """Sends user to project information page."""

    title = request.args.get('title')
    title, description, max_grade = hackbright.get_project_by_title(title)
    name_and_grade = hackbright.get_grades_by_title(title)

    return render_template('project-details.html',
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           name_and_grade=name_and_grade)
def get_project():
	""" Show project information """

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

	project_title, description, max_grade = hackbright.get_project_by_title(title)
	
	github_and_grades = hackbright.get_grades_by_title(title)

	return render_template("project_info.html", 
							project_title=project_title,
							description=description,
							max_grade=max_grade, github_and_grades = github_and_grades)
def show_project_info():
    """Show information about specific project"""

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

    title, description, max_grade = hackbright.get_project_by_title(title)
    rows = hackbright.get_student_grade_by_title(title)

    return render_template("project-info.html",
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           rows=rows)
Example #39
0
def project_info():
    """Given project title, return project's description and max grade"""

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

    print title

    title, description, max_grade = hackbright.get_project_by_title(title)

    return render_template("project_info.html",
                           title=title,
                           description=description,
                           max_grade=max_grade)
def show_project():
    """Show information about a project."""

    given_title = request.args.get('title')
    title, description, max_grade = hackbright.get_project_by_title(given_title)
    project_grade_list = hackbright.get_grades_by_project(given_title)
    html = render_template("project.html",
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           project_grade_list=project_grade_list
                           )
    return html
def list_project_info ():
    project_title = request.args.get ("project_title")
    print "Project title: %s" %(project_title)
    project_info = hackbright.get_project_by_title(project_title)
    description = project_info[1]
    print "description: %s" %(description)
    max_grade = project_info[2]
    print "max grade: %s" %(max_grade)

    return render_template ("project_listing.html",
                            description=description,
                            max_grade=max_grade,
                            title=project_title)
def project_info():
    
    project_title = request.args.get('project_title')

    project_grades = hackbright.get_grades_by_title(project_title)

    project_info = hackbright.get_project_by_title(project_title)

    html = render_template("project_info.html",
                            project_info=project_info,
                            project_grades=project_grades)

    return html
Example #43
0
def show_project():
	"""Display information about the project (title, description, max grade)"""

	# TO DO: maybe add something to check whether the title exists in the database? or does it do this already?
	title = request.args.get('title')

	# unpacking from the get_project_by_title function
	title, description, max_grade = hackbright.get_project_by_title(title)

	# get all the students that completed that project from the get_grades_by_title function
	grades = hackbright.get_grades_by_title(title)

	return render_template("project_info.html", title=title, description=description, max_grade=max_grade, grades=grades)
Example #44
0
def project():
    """Project listing."""

    title = request.args.get("title", "Banana Cream Pie")
    title, description, max_grade = hackbright.get_project_by_title(title)

    rows = hackbright.get_grades_by_title(title)

    return render_template("project.html",
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           rows=rows)
def display_project_info():
    """Display project information.

    Displays the title, description, and maximum grade of a project.
    """

    title = request.args.get("title")

    project_info = hackbright.get_project_by_title(title)
    student_grades = hackbright.get_grades_by_project(title)

    return render_template("project_info.html", project_info=project_info,
                                                student_grades=student_grades)
Example #46
0
def get_project_info():
    """Show project information on project information page"""

    title = request.args.get("title")
    title, description, max_grade = hackbright.get_project_by_title(title)

    students = hackbright.get_grades_by_title(title)
    print students

    return render_template("project_info.html",
                           title=title,
                           description=description,
                           students=students)
def get_project():
    """Get project details by project title. """

    title = request.args.get('title')
    title, description, max_score = hackbright.get_project_by_title(title)

    all_grades = hackbright.get_grades_by_title(title)

    return render_template('projects.html',
                           title=title,
                           description=description,
                           max_score=max_score,
                           all_grades=all_grades)
Example #48
0
def get_project_info():
    """Returns the title, description, and max grade of a proj"""

    proj_title = request.args.get('project_title')

    proj_info = hackbright.get_project_by_title(proj_title)
    all_student_grades = hackbright.get_grades_by_title(proj_title)
    print(all_student_grades)
    # student_name = hackbright.get_

    return render_template("project.html",
                           proj_info=proj_info,
                           grades=all_student_grades)
def adding_title_and_grade():
    title = request.args.get('title')

    title = hackbright.get_project_by_title(title)

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

    grades = hackbright.get_grades_by_github(github)

    html = render_template("student_info.html",
                           title=title,
                           grades=grades)
    return html
Example #50
0
def find_project():
    """ Show information about a project"""

    title = request.args.get("title")
    project_title, description, max_grade = hackbright.get_project_by_title(
        title)
    rows = hackbright.get_grades_by_title(title)

    return render_template("project_info.html",
                           project_title=project_title,
                           description=description,
                           max_grade=max_grade,
                           rows=rows)
def get_project():
    """Show project information"""
    title = request.args.get('project')

    project_info = hackbright.get_project_by_title(title)

    grade_info = hackbright.get_grades_and_names_by_title(title)

    return render_template("project.html",
                           project_name=project_info[0],
                           project_des=project_info[1],
                           points=project_info[2],
                           grades=grade_info)
def get_project():
    """Show information about a project."""

    title = request.args.get("title")

    title, description, max_grade = hackbright.get_project_by_title(title)

    grades = hackbright.get_grades_by_title(title)

    return render_template("project_info.html",
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           grades=grades)
Example #53
0
def display_project():
    """Displays projects"""

    title = request.args.get('project')
    row = hackbright.get_project_by_title(title)
    rows = hackbright.get_grades_by_title(title)
    description = row[1]
    max_grade = row[2]

    return render_template("display_project.html",
                           title=title,
                           description=description,
                           max_grade=max_grade,
                           rows=rows)
def get_project():
    """Show information about a project"""
    # should show title, description, and maximum grade

    title = request.args.get('name')

    info = hackbright.get_project_by_title(title)
    title = info[0]
    description = info[1]
    max_grade = info[2]

    return render_template("project_info.html",
                           title=title,
                           description=description,
                           max_grade=max_grade)
def describe_project():
    """Gives title, description, and maximum grade of a project"""

    title = request.args.get('name')
    project_info = hackbright.get_project_by_title(title)
    project_title, description, max_grade = project_info

    project_grades = hackbright.get_grades_by_title(title)
    


    return render_template("/projects.html", 
                            project_title=project_title, 
                            description=description,
                            max_grade=max_grade,
                            grades=project_grades)
Example #56
0
def get_student():
    """Show information about a student."""

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

    # [ (project_title, grade ), (project_title, grade )]
    grades = hackbright.get_grades_by_github(github)
    
    descriptions = hackbright.get_project_by_title(title)

    html = render_template("student_info.html", 
                            first=first,
                            last=last,
                            github=github,
                            grades=grades)
    return html
def get_project_info():
    """Show info about project."""

    title = request.args.get('title', 'Markov')
    title, description, max_grade = hackbright.get_project_by_title(title)
    students_and_grade = hackbright.get_grades_by_title(title)

    for github, grade in students_and_grade:
        first_name, last_name, github = hackbright.get_student_by_github(github)
    # endsloop on last person does catch each student - NEED TO FIX

    return render_template("project_info.html",
                            title = title,
                            description = description,
                            max_grade = max_grade,
                            students_and_grade = students_and_grade,
                            first_name = first_name,
                            last_name = last_name)
Example #58
0
def project_info():
    """Show information about a project."""

    title = request.args.get('title', 'Markov')
    title, description, grade = hackbright.get_project_by_title(title)
    name_grade = []
    students = hackbright.get_grades_by_title(title)
    for student in students:
        name, last_name, github = hackbright.get_student_by_github(student[0])
        grade = student[1]
        name_grade.append((name, last_name, grade, github))

    return render_template("project.html",
                            title=title,
                            description=description,
                            max_grade=grade,
                            students=name_grade,
                            )
def project(title):
    """Show project title, description and maximum grade."""

    title, description, maximum_grade = hackbright.get_project_by_title(title)
    students_completed_project = hackbright.get_grades_by_title(title)  # Assigning list of tuples of students that did the project with their grades.

    students = []

    for student in students_completed_project:
        print "Student: ", student
        grade = student[1]  # student[1] = row[1] from hackbright.get_grades_by_title 
        # which is the grade. 
        print "Grade: ", grade
        fname, lname, github = hackbright.get_student_by_github(student[0])  # student[0] = row [0] from hackbright.get_grades_by_title which is the github.
        students.append((fname, lname, github, grade))
    print "List of tuples: ", students


    return render_template("project_info.html", title=title,
                                                description=description,
                                                maximum_grade=maximum_grade)
def get_project():
    """Show information about a student."""
    student_names = []
    grades = []
    usernames = []

    title = request.args.get('title')
    title, description, max_grade = hackbright.get_project_by_title(title)
    student_list = hackbright.get_grades_by_title(title)

    for student in student_list:
        first_name, last_name, github = hackbright.get_student_by_github(student[0])
        student_names.append(first_name + " " + last_name)
        usernames.append(github)
        grades.append(student[1])

    student_list = zip(student_names, grades, usernames)

    return render_template('project_info.html',
                            title=title, 
                            description=description,
                            max_grade=max_grade,
                            student_list=student_list)