From cb6013a7a6cadbe31bfb1b7a6a420f325bb91fdf Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 26 Oct 2023 18:09:05 +0530 Subject: [PATCH] fix: source doctype name during install --- lms/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/install.py b/lms/install.py index e77cad23..cd74c28d 100644 --- a/lms/install.py +++ b/lms/install.py @@ -191,7 +191,7 @@ def create_batch_source(): ] for source in sources: - if not frappe.db.exists("LMS Batch Source", source): - doc = frappe.new_doc("LMS Batch Source") + if not frappe.db.exists("LMS Source", source): + doc = frappe.new_doc("LMS Source") doc.source = source doc.save()