feat: redesign lesson page

This commit is contained in:
Jannat Patel
2023-04-25 20:54:57 +05:30
parent 3b5c47222d
commit 4eb5390ad8
14 changed files with 314 additions and 255 deletions

View File

@@ -25,6 +25,7 @@ def get_common_context(context):
context.lessons = get_lessons(course.name)
membership = get_membership(course.name, frappe.session.user, batch_name)
context.membership = membership
context.progress = frappe.utils.cint(membership.progress) if membership else 0
context.batch = membership.batch if membership and membership.batch else None
context.course.query_parameter = (
"?batch=" + membership.batch if membership and membership.batch else ""