Commit 2b1598f8 by Awais Jibran Committed by GitHub

Merge pull request #14123 from edx/aj/filter-unpublish-courses-from-discovery

Fix accidentally exposed Supply Chain course run
parents 3c3b4f44 8cb27a08
......@@ -51,6 +51,7 @@ class TestGetPrograms(mixins.CatalogIntegrationMixin, TestCase):
querystring = {
'marketable': 1,
'exclude_utm': 1,
'published_course_runs_only': 1,
}
if type:
querystring['type'] = type
......
......@@ -43,6 +43,7 @@ def get_programs(user, uuid=None, type=None): # pylint: disable=redefined-built
querystring = {
'marketable': 1,
'exclude_utm': 1,
'published_course_runs_only': 1,
}
if type:
querystring['type'] = type
......
......@@ -145,9 +145,6 @@ def attach_program_detail_url(programs):
Returns:
list, containing extended program dicts
"""
programs_config = ProgramsApiConfig.current()
marketing_url = get_program_marketing_url(programs_config)
for program in programs:
base = reverse('program_details_view', kwargs={'program_id': program['id']}).rstrip('/')
slug = slugify(program['name'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment