Commit 7f8f7029 by David Ormsbee

Fix silly error that was pulling the wrong info from COURSE_LISTINGS

parent d0f26418
......@@ -212,7 +212,9 @@ def get_courses_by_university(user, domain=None):
courses = sorted(courses, key=lambda course: course.number)
if domain and settings.MITX_FEATURES.get('SUBDOMAIN_COURSE_LISTINGS'):
subdomain = settings.COURSE_LISTINGS.get(domain.split(".")[0], 'default')
subdomain = domain.split(".")[0]
if subdomain not in settings.COURSE_LISTINGS:
subdomain = 'default'
visible_courses = frozenset(settings.COURSE_LISTINGS[subdomain])
else:
visible_courses = frozenset(c.id for c in courses)
......
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