feat: publish batches

This commit is contained in:
Jannat Patel
2023-09-12 15:09:13 +05:30
19 changed files with 218 additions and 33 deletions

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