chore: renamed get_course_meta
to get_student_course_details
This commit is contained in:
parent
327334a830
commit
d5973fe4bc
@ -82,7 +82,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getCourseMeta() {
|
getCourseMeta() {
|
||||||
return lms.call('get_course_meta', {
|
return lms.call('get_student_course_details', {
|
||||||
course_name: this.course.name,
|
course_name: this.course.name,
|
||||||
program_name: this.program_name
|
program_name: this.program_name
|
||||||
})
|
})
|
||||||
|
@ -169,7 +169,7 @@ def add_activity(course, content_type, content):
|
|||||||
frappe.db.commit()
|
frappe.db.commit()
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_course_meta(course_name, program_name):
|
def get_student_course_details(course_name, program_name):
|
||||||
"""
|
"""
|
||||||
Return the porgress of a course in a program as well as the content to continue from.
|
Return the porgress of a course in a program as well as the content to continue from.
|
||||||
:param course_name:
|
:param course_name:
|
||||||
@ -233,7 +233,7 @@ def get_program_progress(program_name):
|
|||||||
else:
|
else:
|
||||||
progress = []
|
progress = []
|
||||||
for course in program.get_all_children():
|
for course in program.get_all_children():
|
||||||
meta = get_course_meta(course.course, program_name)
|
meta = get_student_course_details(course.course, program_name)
|
||||||
is_complete = False
|
is_complete = False
|
||||||
if meta['flag'] == "Completed":
|
if meta['flag'] == "Completed":
|
||||||
is_complete = True
|
is_complete = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user