def show_students_data(): ''' Prepares data to display in a formatted table. ''' title_list = ['ID', 'Name', 'Surname', 'Email', 'Status', 'Team', 'Card'] title = 'Student list:' table = Ui.create_student_table_to_print(Student.student_list) Ui.print_table(table, title, title_list)
def show_mentors(): ''' Prepares data to display in a formatted table. ''' title = 'Mentors list:' title_list = ['ID', 'Name', 'Surname', 'Email', 'Status'] table = Ui.create_person_table_to_print(Mentor.mentors_list) Ui.print_table(table, title, title_list)
def show_regular_employees(): ''' Prepares data to display in a formatted table. ''' title = 'Regular employees list:' title_list = ['ID', 'Name', 'Surname', 'Email', 'Status'] table = Ui.create_person_table_to_print(Employee.employees_list) Ui.print_table(table, title, title_list)
def show_attendance(user): ''' Prepares data to display in a formatted table. ''' data = Attendance.attendances_list table = user.check_attendence(data) title = 'Your attendance' title_list = ['Date', 'Attendance [%]'] Ui.print_table(table, title, title_list)
def show_grades(user): ''' Prepares data to display in a formatted table. ''' submissions = user.view_grades() table = Ui.create_submission_table_to_print(submissions) title = ('\nYour submissions:\n') title_list = ['Submission name', 'Grade'] Ui.print_table(table, title, title_list)
def show_students(): ''' Prepares data to display in a formatted table. ''' title = 'Student list:' title_list = ['ID', 'Name', 'Surname', 'Email', 'Status'] table = Ui.create_person_table_to_print(Student.student_list) Ui.print_table(table, title, title_list) Ui.get_inputs([''], "Click enter to go back")
def show_full_statistics_about_students(): ''' Prepares data to display in a formatted table. ''' data = Submission.get_students_average_grades(Submission.submission_list) average_grades = Submission.get_name_by_id(data, Student.student_list) table = Student.get_full_statistics_about_students(Student.student_list, average_grades) title_list = ['ID', 'Name', 'Surname', 'Email', 'Team', 'Average', 'Card'] title = 'FULL STATISTICS ABOUT STUDENTS' Ui.print_table(table, title, title_list)
def show_average_of_grades(): ''' Prepares data to display in a formatted table. ''' data = Submission.get_students_average_grades(Submission.submission_list) average_grades = Submission.get_name_by_id(data, Student.student_list) title = 'Students average grades' title_list = ['Id', 'Name', 'Surname', 'Average of grades'] table = Ui.create_average_grades_table_to_print(average_grades) Ui.print_table(table, title, title_list)