From a8d4572aefdab43ea94da8e333a870e14297467c Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 8 Apr 2025 18:12:21 +0530 Subject: [PATCH] fix: add app_name as document title --- frontend/index.html | 2 +- lms/www/lms.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 86a3dece..1c73632c 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - Frappe Learning + {{ title or "Frappe Learning" }} diff --git a/lms/www/lms.py b/lms/www/lms.py index 67a9f235..f2fc92a0 100644 --- a/lms/www/lms.py +++ b/lms/www/lms.py @@ -15,12 +15,9 @@ def get_context(): context.meta = get_meta(app_path) else: context.meta = {} - csrf_token = frappe.sessions.get_csrf_token() - frappe.db.commit() # nosemgrep - context.csrf_token = csrf_token - context.setup_complete = cint(frappe.get_system_settings("setup_complete")) capture("active_site", "lms") context.favicon = frappe.db.get_single_value("Website Settings", "favicon") + context.title = frappe.db.get_single_value("Website Settings", "app_name") return context