Skip to content

Commit

Permalink
feat: Add deprecate_youtube flag in course blocks api (#35754)
Browse files Browse the repository at this point in the history
  • Loading branch information
jawad-khan authored Nov 8, 2024
1 parent f0c94cd commit 6ad5b10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lms/djangoapps/mobile_api/course_info/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
MobileCourseEnrollmentSerializer
)
from openedx.core.djangoapps.content.course_overviews.models import CourseOverview
from openedx.core.djangoapps.video_pipeline.config.waffle import DEPRECATE_YOUTUBE
from openedx.core.lib.api.view_utils import view_auth_classes
from openedx.core.lib.xblock_utils import get_course_update_items
from openedx.features.course_experience import ENABLE_COURSE_GOALS
Expand Down Expand Up @@ -341,6 +342,7 @@ def list(self, request, **kwargs): # pylint: disable=W0221
kwargs={'api_version': api_version, 'course_id': course_id},
request=request,
),
'deprecate_youtube': DEPRECATE_YOUTUBE.is_enabled(course_key)
}

course_info_context = {}
Expand Down

0 comments on commit 6ad5b10

Please sign in to comment.