fix: check if present before adding
This commit is contained in:
@@ -7,7 +7,10 @@ def execute():
|
||||
frappe.reload_doc("lms", "doctype", "chapter_reference")
|
||||
frappe.reload_doc("lms", "doctype", "lesson_reference")
|
||||
|
||||
if not frappe.db.count("Chapter Reference"):
|
||||
move_chapters()
|
||||
|
||||
if not frappe.db.count("Lesson Reference"):
|
||||
move_lessons()
|
||||
|
||||
def move_chapters():
|
||||
|
||||
Reference in New Issue
Block a user