fix: router
This commit is contained in:
12
lms/www/learning.py
Normal file
12
lms/www/learning.py
Normal 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
|
||||
Reference in New Issue
Block a user