Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 5a85c45

Browse files
authored
Merge pull request #169 from edx/dsjen/fix-course-ids
Fix course summaries query arg to use course_ids.
2 parents 662acec + 32b502c commit 5a85c45

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

analytics_data_api/v0/tests/views/test_course_summaries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_empty_modes(self, modes):
139139
[CourseSamples.course_ids[0], 'malformed-course-id'],
140140
)
141141
def test_bad_course_id(self, course_ids):
142-
response = self.authenticated_get(self.path(ids=course_ids))
142+
response = self.authenticated_get(self.path(course_ids=course_ids))
143143
self.verify_bad_course_id(response)
144144

145145
def test_collapse_upcoming(self):

analytics_data_api/v0/views/course_summaries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CourseSummariesView(APIListView):
1515
1616
**Example Request**
1717
18-
GET /api/v0/course_summaries/?ids={course_id},{course_id}
18+
GET /api/v0/course_summaries/?course_ids={course_id},{course_id}
1919
2020
**Response Values**
2121
@@ -63,7 +63,7 @@ def get(self, request, *args, **kwargs):
6363
programs = split_query_argument(query_params.get('programs'))
6464
if not programs:
6565
self.always_exclude = self.always_exclude + ['programs']
66-
self.ids = split_query_argument(query_params.get('ids'))
66+
self.ids = split_query_argument(query_params.get('course_ids'))
6767
self.verify_ids()
6868
response = super(CourseSummariesView, self).get(request, *args, **kwargs)
6969
return response

0 commit comments

Comments
 (0)