More Improvements

This commit is contained in:
scmmishra
2018-12-05 10:35:48 +05:30
committed by Aditya Hase
parent 02420bd4ba
commit 798f13be0d
6 changed files with 38 additions and 5 deletions

View File

@@ -124,4 +124,12 @@ def enroll_all_courses_in_program(program_enrollment, student):
def check_activity_exists(enrollment, content_type, content):
activity = frappe.get_all("Course Activity", filters={'enrollment': enrollment, 'content_type': content_type, 'content': content})
return bool(activity)
return bool(activity)
# def get_home_page(user):
# print("----------------------------------------------------------------------")
# print("Let's do a lot of magic")
# if get_current_student():
# return 'lms#/Profile'
# else:
# return None