feat: editor js import

This commit is contained in:
Jannat Patel
2023-04-18 11:51:57 +05:30
parent 4c220a67f2
commit a0782c7bf7
11 changed files with 70 additions and 17 deletions

10
lms/www/batch/edit.py Normal file
View File

@@ -0,0 +1,10 @@
import frappe
from lms.www.utils import get_current_lesson_details, get_common_context
def get_context(context):
get_common_context(context)
chapter_index = frappe.form_dict.get("chapter")
lesson_index = frappe.form_dict.get("lesson")
lesson_number = f"{chapter_index}.{lesson_index}"
context.lesson = get_current_lesson_details(lesson_number, context)