refactor: added lms utilities for enrollment and program list
diff --git a/erpnext/www/lms/all_programs.py b/erpnext/www/lms/all_programs.py
index aa10e2b..c0c18c3 100644
--- a/erpnext/www/lms/all_programs.py
+++ b/erpnext/www/lms/all_programs.py
@@ -6,10 +6,4 @@
def get_context(context):
context.education_settings = frappe.get_single("Education Settings")
- context.all_programs = get_all_programs()
-
-def get_all_programs():
- program_names = frappe.get_all("Program", filters={"is_published": True})
- if program_names:
- program_list = [utils.get_program_and_enrollment_status(program['name']) for program in program_names]
- return program_list
+ context.all_programs = utils.get_portal_programs()
\ No newline at end of file