feat: course outline page

This commit is contained in:
Jannat Patel
2023-04-26 11:46:08 +05:30
parent 4eb5390ad8
commit fcdd70dcc7
5 changed files with 134 additions and 1 deletions

View File

@@ -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)