feat: course outline page
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import frappe
|
||||
from lms.lms.utils import get_chapters
|
||||
|
||||
|
||||
def get_context(context):
|
||||
@@ -6,3 +7,4 @@ def get_context(context):
|
||||
context.course = frappe.db.get_value(
|
||||
"LMS Course", frappe.form_dict["course"], ["name", "title"], as_dict=True
|
||||
)
|
||||
context.chapters = get_chapters(context.course.name)
|
||||
|
||||
Reference in New Issue
Block a user