From f11059524fa29838e8451f4dcb620ed018db917c Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 9 Mar 2026 11:54:16 +0530 Subject: [PATCH] fix: lms dynamic path fetching --- frontend/package.json | 2 -- lms/hooks.py | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index d838d5e2..d94a0be5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -27,8 +27,6 @@ "@editorjs/table": "2.4.2", "@vueuse/core": "^14.1.0", "ace-builds": "1.36.2", - "apexcharts": "4.3.0", - "chart.js": "4.4.1", "codemirror": "6.0.1", "dayjs": "1.11.10", "dompurify": "3.2.6", diff --git a/lms/hooks.py b/lms/hooks.py index 041d1f7a..a96ff6d3 100644 --- a/lms/hooks.py +++ b/lms/hooks.py @@ -15,7 +15,10 @@ app_license = "AGPL" def get_lms_path(): - return (frappe.conf.get("lms_path") if frappe.conf else "lms").strip("/") + path = "lms" + if frappe.conf and frappe.conf.get("lms_path"): + path = frappe.conf.get("lms_path") + return path.strip("/") # Includes in