feat: publish batches
This commit is contained in:
8
lms/patches/v1_0/publish_batches.py
Normal file
8
lms/patches/v1_0/publish_batches.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
batches = frappe.get_all("LMS Batch", pluck="name")
|
||||
|
||||
for batch in batches:
|
||||
frappe.db.set_value("LMS Batch", batch, "Published", 1)
|
||||
Reference in New Issue
Block a user