13 lines
267 B
Python
13 lines
267 B
Python
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
|