fix: format

This commit is contained in:
Jannat Patel
2022-12-12 13:39:01 +05:30
parent 0356b8e2d2
commit b527c9b160

View File

@@ -1,6 +1,9 @@
import frappe
def execute():
value = frappe.db.get_single_value("LMS Settings", "portal_course_creation")
if value == "Course Instructor Role":
frappe.db.set_value("LMS Settings", None, "portal_course_creation", "Course Creator Role")
frappe.db.set_value(
"LMS Settings", None, "portal_course_creation", "Course Creator Role"
)