fix: patch format

This commit is contained in:
Jannat Patel
2022-12-21 10:40:30 +05:30
parent da9667e1f7
commit 1e1580d58a

View File

@@ -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)