feat: onboarding steps

This commit is contained in:
Jannat Patel
2024-11-22 16:28:28 +05:30
parent 7cafaf5cbc
commit 58f109e79c
7 changed files with 176 additions and 0 deletions

View File

@@ -855,7 +855,10 @@ def get_telemetry_boot_info():
}
@frappe.whitelist()
def is_onboarding_complete():
if not has_course_moderator_role():
return {"is_onboarded": False}
course_created = frappe.db.a_row_exists("LMS Course")
chapter_created = frappe.db.a_row_exists("Course Chapter")
lesson_created = frappe.db.a_row_exists("Course Lesson")