From d78c326f956e3efbbc34c3e7fe3d274b4e4f104c Mon Sep 17 00:00:00 2001 From: scmmishra Date: Mon, 22 Apr 2019 12:06:28 +0530 Subject: [PATCH] chore: renamed `get_topic_meta` to `get_student_topic_details` --- erpnext/public/js/education/lms/components/TopicCard.vue | 2 +- erpnext/www/lms.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/education/lms/components/TopicCard.vue b/erpnext/public/js/education/lms/components/TopicCard.vue index 609fcd6009..18574fb595 100644 --- a/erpnext/public/js/education/lms/components/TopicCard.vue +++ b/erpnext/public/js/education/lms/components/TopicCard.vue @@ -97,7 +97,7 @@ export default { if(content_type == 'Quiz') return 'fa fa-question-circle-o' }, getTopicMeta() { - return lms.call('get_topic_meta', { + return lms.call('get_student_topic_details', { topic_name: this.topic.name, course_name: this.course_name, }) diff --git a/erpnext/www/lms.py b/erpnext/www/lms.py index 0d342e3ec2..6624c46171 100644 --- a/erpnext/www/lms.py +++ b/erpnext/www/lms.py @@ -195,7 +195,7 @@ def get_student_course_details(course_name, program_name): return {'flag':'Continue'} @frappe.whitelist() -def get_topic_meta(topic_name, course_name): +def get_student_topic_details(topic_name, course_name): """ Return the porgress of a course in a program as well as the content to continue from. :param topic_name: