Beispiel #1
0
 def get_all_by_teacher_id(self, teacher_id: int):
     return Lessons.get_all_by_teacher_id(teacher_id)
Beispiel #2
0
 def new(self, group_id, title, description, file_path, lesson_date):
     return Lessons.new(group_id, title, description, file_path, lesson_date)
Beispiel #3
0
 def get_all(self):
     return Lessons().get_all()
Beispiel #4
0
 def find_by_id(self, id):
     return Lessons.find_by_id(id)
Beispiel #5
0
 def all(self, group_id):
     return Lessons.get_lessons_by_group_id(group_id)
Beispiel #6
0
 def delete(self, id):
     return Lessons.delete(id)
Beispiel #7
0
 def edit(self, title, description, file_path, lesson_date):
     return Lessons.edit(title, description, file_path, lesson_date)