Compare commits

...

3 Commits

Author SHA1 Message Date
Jannat Patel
919a5265c2 Merge pull request #1240 from pateljannat/fix-onboarding-data
fix: onboarding data update
2025-01-10 15:06:19 +05:30
Jannat Patel
507d08f37c fix: onboarding data update 2025-01-10 15:04:08 +05:30
Jannat Patel
40c295aa37 fix: slides rendering issue 2024-08-29 11:24:03 +05:30
2 changed files with 14 additions and 3 deletions

View File

@@ -827,6 +827,17 @@ def get_telemetry_boot_info():
def is_onboarding_complete():
onboarding_status = frappe.db.get_single_value(
"LMS Settings", "is_onboarding_complete"
)
if onboarding_status:
return {
"is_onboarded": onboarding_status,
"course_created": True,
"chapter_created": True,
"lesson_created": True,
"first_course": None,
}
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")
@@ -835,7 +846,7 @@ def is_onboarding_complete():
frappe.db.set_single_value("LMS Settings", "is_onboarding_complete", 1)
return {
"is_onboarded": frappe.db.get_single_value("LMS Settings", "is_onboarding_complete"),
"is_onboarded": onboarding_status,
"course_created": course_created,
"chapter_created": chapter_created,
"lesson_created": lesson_created,

View File

@@ -49,9 +49,9 @@ const get_tools = () => {
vimeo: true,
codepen: true,
slides: {
regex: /https:\/\/docs\.google\.com\/presentation\/d\/e\/([A-Za-z0-9_-]+)\/pub/,
regex: /https:\/\/docs\.google\.com\/presentation\/d\/([A-Za-z0-9_-]+)\/pub/,
embedUrl:
"https://docs.google.com/presentation/d/e/<%= remote_id %>/embed",
"https://docs.google.com/presentation/d/<%= remote_id %>/embed",
html: "<iframe width='100%' height='300' frameborder='0' allowfullscreen='true'></iframe>",
},
},