10 lines
256 B
Python
10 lines
256 B
Python
import frappe
|
|
|
|
|
|
def execute():
|
|
frappe.reload_doc("lms", "doctype", "lms_certificate")
|
|
certificates = frappe.get_all("LMS Certificate", pluck="name")
|
|
|
|
for certificate in certificates:
|
|
frappe.db.set_value("LMS Certificate", certificate, "published", 1)
|