chore: analytics for course completion

This commit is contained in:
Jannat Patel
2024-09-13 11:18:17 +05:30
parent d44c7cd9fc
commit 76c3e630cc
5 changed files with 13 additions and 10 deletions

View File

@@ -17,8 +17,7 @@ def get_context():
csrf_token = frappe.sessions.get_csrf_token()
frappe.db.commit() # nosemgrep
context.csrf_token = csrf_token
if frappe.session.user != "Guest":
capture("active_site", "lms")
capture("active_site", "lms")
return context