From 1e1580d58a348726927bb288c8499d6fad132c97 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 21 Dec 2022 10:40:30 +0530 Subject: [PATCH] fix: patch format --- lms/patches/v0_0/check_onboarding_status.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lms/patches/v0_0/check_onboarding_status.py b/lms/patches/v0_0/check_onboarding_status.py index a57189e0..c1686819 100644 --- a/lms/patches/v0_0/check_onboarding_status.py +++ b/lms/patches/v0_0/check_onboarding_status.py @@ -1,6 +1,11 @@ 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"): + 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)