fix: patch for published field
This commit is contained in:
6
lms/patches/v0_0/change_published_field_data.py
Normal file
6
lms/patches/v0_0/change_published_field_data.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
courses = frappe.get_all("LMS Course", fields=["name", "is_published"])
|
||||
for course in courses:
|
||||
frappe.db.set_value("LMS Course", course.name, "published", course.is_published)
|
||||
Reference in New Issue
Block a user