fix: router

This commit is contained in:
Jannat Patel
2024-03-19 12:51:11 +05:30
parent 86748b301d
commit f15862cef4
4 changed files with 21 additions and 6 deletions

12
lms/www/learning.py Normal file
View File

@@ -0,0 +1,12 @@
import frappe
from frappe.utils.telemetry import capture
no_cache = 1
def get_context(context):
csrf_token = frappe.sessions.get_csrf_token()
frappe.db.commit()
if frappe.session.user != "Guest":
capture("active_site", "lms")
context.csrf_token = csrf_token