def lessons_page(): isAuthenticated() _lessons = lessons.getLessons() return template("lessons", {"lessons": _lessons})
def lessons_page(): _lessons = lessons.getLessons() return template("lessons",{"lessons":_lessons})
def chapters_page(): isAuthenticated() _chapters = chapters.getChapters() _lessons = lessons.getLessons() return template("chapters", {"lessons": _lessons,"chapters": _chapters, "getLessonInformations": lessons.getLessonInformations})