diff --git a/enterprise/api_client/discovery.py b/enterprise/api_client/discovery.py index 3e39ce973d..8044fdbc19 100644 --- a/enterprise/api_client/discovery.py +++ b/enterprise/api_client/discovery.py @@ -104,6 +104,12 @@ def get_catalog_results_from_discovery(self, content_filter_query, query_params= Return results from the discovery service's search/all endpoint. """ api_url = self.get_api_url(self.SEARCH_ALL_ENDPOINT) + + # This change allows the key list to be sent as query parameters. + # This is a temporary change to support catalogues with specific courses. + if content_filter_query.get('key'): + query_params['key'] = content_filter_query.get('key') + response = self.client.post(api_url, data=content_filter_query, params=query_params) response.raise_for_status() response = response.json()