예제 #1
0
def applicants_and_mentors():
    return render_template('queries.html',
                           data_list=queries.fetch_database(queries.show_applicants_and_mentors()),
                           table_head=['Applicants first name', 'Application code', 'Mentor first name', 'Mentor last name'])
예제 #2
0
def applicants():
    return render_template('queries.html',
                           data_list=queries.fetch_database(queries.show_applicants()),
                           table_head=['Applicant first name', 'Application code', 'Creation_date'])
예제 #3
0
def mentors_by_country():
    return render_template('queries.html',
                           data_list=queries.fetch_database(queries.show_mentors_by_country()),
                           table_head=['Country', 'Mentor'])
예제 #4
0
def contacts():
    return render_template('queries.html',
                           data_list=queries.fetch_database(queries.show_contacts()),
                           table_head=['School name', 'Mentor first name', 'Mentor last name'])
예제 #5
0
def all_school():
    return render_template('queries.html',
                           data_list=queries.fetch_database(queries.show_all_school()),
                           table_head=['Mentor first name', 'Mentor last name', 'School name', 'Country'])