fix: patch for published field

This commit is contained in:
Jannat Patel
2022-03-25 15:56:43 +05:30
parent 77df068fea
commit 56f4f6c977
3 changed files with 8 additions and 1 deletions

View 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)