From f08dcdbf51b9cec1684caec443633db3a4241443 Mon Sep 17 00:00:00 2001 From: stvn Date: Fri, 9 Apr 2021 10:44:15 -0700 Subject: [PATCH] refactor: Import a single function, not the whole module --- lms/djangoapps/ccx/api/v0/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/ccx/api/v0/views.py b/lms/djangoapps/ccx/api/v0/views.py index 19477ae4e7..4e9ad681ab 100644 --- a/lms/djangoapps/ccx/api/v0/views.py +++ b/lms/djangoapps/ccx/api/v0/views.py @@ -24,7 +24,7 @@ from common.djangoapps.student.roles import CourseCcxCoachRole from lms.djangoapps.ccx.models import CcxFieldOverride, CustomCourseForEdX from lms.djangoapps.ccx.overrides import override_field_for_ccx from lms.djangoapps.ccx.utils import add_master_course_staff_to_ccx, assign_staff_role_to_ccx, is_email -from lms.djangoapps.courseware import courses +from lms.djangoapps.courseware.courses import get_course_chapter_ids from lms.djangoapps.instructor.enrollment import enroll_email, get_email_params from openedx.core.djangoapps.content.course_overviews.models import CourseOverview from openedx.core.lib.api import authentication, permissions @@ -185,7 +185,7 @@ def valid_course_modules(course_module_list, master_course_key): Returns: bool: whether or not all the course module strings belong to the master course """ - course_chapters = courses.get_course_chapter_ids(master_course_key) + course_chapters = get_course_chapter_ids(master_course_key) return set(course_module_list).intersection(set(course_chapters)) == set(course_module_list)