Commit 398d3c74 by Albert St. Aubin

Added new method to retrieve the course runs for a course based on UUID

This method will retrieve the Course Run information from the Discovery
service based on a Courses UUID.

[LEARNER-3160]
parent 7570c2f7
......@@ -233,7 +233,7 @@ def get_course_runs_for_course(course_uuid):
resource_id=course_uuid,
api=api,
cache_key=cache_key if catalog_integration.is_cache_enabled else None,
long_term_cache=True
long_term_cache=True,
)
return data.get('course_runs', [])
......
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