mirror of
https://github.com/frappe/lms.git
synced 2026-04-24 09:28:07 +03:00
10 lines
328 B
Python
10 lines
328 B
Python
import frappe
|
|
from frappe.utils import flt
|
|
|
|
|
|
def execute():
|
|
frappe.reload_doc("lms", "doctype", "lms_course_progress")
|
|
progress_records = frappe.get_all("LMS Enrollment", fields=["name", "progress"])
|
|
for progress in progress_records:
|
|
frappe.db.set_value("LMS Enrollment", progress.name, "progress", flt(progress.progress))
|