Пример #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'])