feat: audio in lessons

This commit is contained in:
Jannat Patel
2023-10-03 13:33:59 +05:30
parent cfc3c231ff
commit 277c089adc
4 changed files with 48 additions and 17 deletions

View File

@@ -101,8 +101,8 @@ def get_context(context):
custom_tabs = frappe.get_hooks("lms_batch_tabs")
if custom_tabs:
context.custom_tabs_header = (custom_tabs.get("header_html")[0],)
context.custom_tabs_content = (custom_tabs.get("content_html")[0],)
context.custom_tabs_header = custom_tabs.get("header_html")[0]
context.custom_tabs_content = custom_tabs.get("content_html")[0]
context.update(frappe.get_attr(custom_tabs.get("context")[0])())