From a78d1277020f2403b799c2bfaad9fe3fa586366f Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 12 Dec 2022 11:28:38 +0530 Subject: [PATCH] fix: formatting --- lms/lms/utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lms/lms/utils.py b/lms/lms/utils.py index 0dde3cfb..3a22fbdf 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -624,14 +624,14 @@ def show_start_learing_cta(course, membership): def has_lessons(course): lesson_exists = False - chapter_exists = frappe.db.get_value("Chapter Reference", { - "parent": course.name - }, ["name", "chapter"], as_dict=True) + chapter_exists = frappe.db.get_value( + "Chapter Reference", {"parent": course.name}, ["name", "chapter"], as_dict=True + ) if chapter_exists: - lesson_exists = frappe.db.exists("Lesson Reference", { - "parent": chapter_exists.chapter - }) + lesson_exists = frappe.db.exists( + "Lesson Reference", {"parent": chapter_exists.chapter} + ) return lesson_exists