mirror of
https://github.com/frappe/lms.git
synced 2026-05-02 13:39:31 +03:00
11 lines
238 B
Python
11 lines
238 B
Python
import frappe
|
|
|
|
|
|
def execute():
|
|
courses = frappe.get_all(
|
|
"LMS Course", filters={"published": 1}, fields=["name", "creation"]
|
|
)
|
|
|
|
for course in courses:
|
|
frappe.db.set_value("LMS Course", course.name, "published_on", course.creation)
|