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

Commit

Permalink
Merge pull request #169 from edx/dsjen/fix-course-ids
Browse files Browse the repository at this point in the history
Fix course summaries query arg to use course_ids.
  • Loading branch information
dsjen authored May 22, 2017
2 parents 662acec + 32b502c commit 5a85c45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion analytics_data_api/v0/tests/views/test_course_summaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def test_empty_modes(self, modes):
[CourseSamples.course_ids[0], 'malformed-course-id'],
)
def test_bad_course_id(self, course_ids):
response = self.authenticated_get(self.path(ids=course_ids))
response = self.authenticated_get(self.path(course_ids=course_ids))
self.verify_bad_course_id(response)

def test_collapse_upcoming(self):
Expand Down
4 changes: 2 additions & 2 deletions analytics_data_api/v0/views/course_summaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CourseSummariesView(APIListView):
**Example Request**
GET /api/v0/course_summaries/?ids={course_id},{course_id}
GET /api/v0/course_summaries/?course_ids={course_id},{course_id}
**Response Values**
Expand Down Expand Up @@ -63,7 +63,7 @@ def get(self, request, *args, **kwargs):
programs = split_query_argument(query_params.get('programs'))
if not programs:
self.always_exclude = self.always_exclude + ['programs']
self.ids = split_query_argument(query_params.get('ids'))
self.ids = split_query_argument(query_params.get('course_ids'))
self.verify_ids()
response = super(CourseSummariesView, self).get(request, *args, **kwargs)
return response
Expand Down

0 comments on commit 5a85c45

Please sign in to comment.