feat: base template and patch for onboarding

This commit is contained in:
Jannat Patel
2022-12-20 13:32:30 +05:30
parent 9e42fdd786
commit da9667e1f7
18 changed files with 82 additions and 92 deletions

View File

@@ -0,0 +1,6 @@
import frappe
def execute():
if frappe.db.count("LMS Course") and frappe.db.count("Course Chapter") \
and frappe.db.count("Course Lesson") and frappe.db.count("LMS Quiz"):
frappe.db.set_value("LMS Settings", None, "is_onboarding_complete", True)