feat: new tab and other misc fixes
This commit is contained in:
10
lms/patches/v1_0/set_published_on.py
Normal file
10
lms/patches/v1_0/set_published_on.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user