fix: sanitised badge assignment api
This commit is contained in:
7
lms/patches/v2_0/rename_badge_assignment_event.py
Normal file
7
lms/patches/v2_0/rename_badge_assignment_event.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
badge_with_auto_assign = frappe.get_all("LMS Badge", filters={"event": "Auto Assign"}, fields=["name"])
|
||||
for badge in badge_with_auto_assign:
|
||||
frappe.db.set_value("LMS Badge", badge.name, "event", "Manual Assignment")
|
||||
Reference in New Issue
Block a user