refactor: added lms utilities for enrollment and program list

This commit is contained in:
Shivam Mishra
2019-05-29 18:39:52 +05:30
parent 5aa8df840e
commit f927502cc5
4 changed files with 96 additions and 51 deletions

View File

@@ -7,6 +7,7 @@ no_cache = 1
def get_context(context):
context.education_settings = frappe.get_single("Education Settings")
context.program = get_program(frappe.form_dict['name'])
context.is_enrolled = utils.get_enrollment_status(program)
def get_program(program_name):
try: