fix: course page
This commit is contained in:
7
community/patches/v0_0/course_instructor_update.py
Normal file
7
community/patches/v0_0/course_instructor_update.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
frappe.reload_doc("lms", "doctype", "lms_course")
|
||||
courses = frappe.get_all("LMS Course", fields=["name", "owner"])
|
||||
for course in courses:
|
||||
frappe.db.set_value("LMS Course", course.name, "instructor", course.owner)
|
||||
Reference in New Issue
Block a user