def save_attendance(cls): """ Call functions to save AttendanceModel to csv file """ attendance_data_records = cls.get_records_from_objects() tools.save_data_to_file(cls._file_name, attendance_data_records)
def save_grades(cls): """ Call functions to save Grade to csv file """ grades_data_records = cls.get_records_from_objects() tools.save_data_to_file(cls._file_name, grades_data_records)
def save_assignments(cls): """ Call functions to save Assignment to csv file """ assignments_data_records = cls.get_records_from_objects() tools.save_data_to_file(cls._file_name, assignments_data_records)
def save_office_managers(cls): """ Call functions to save OfficeManager to csv file """ tools.save_data_to_file(cls._file_name, cls.office_managers_list, staff=True)
def save_students(cls): """ Call functions to save Student to csv file """ tools.save_data_to_file(cls._file_name, cls.student_list, staff=True)
def save_mentors(cls): """ Call functions to save Mentor to csv file """ tools.save_data_to_file(cls._file_name, cls.mentor_list, staff=True)