def display_all_students_evets(user_id): """ Call function to print all students and user Events object and all Checkpoint objects Examples: "st" are two first signs of student id """ view.print_all_events(Event.get_events())
def display_user_evets(user_id): """ Call function to print all user private mentoring and checkpoints Events objects to user Examples: "mt" are two first signs of mentor id """ user_events = [] events = Event.get_events() for event in events: if event.user_id == user_id or event.__class__.__name__ == "Checkpoint": user_events.append(event) view.print_all_events(user_events)