Search for course specifically in navigation view

This commit is contained in:
Calen Pennington
2012-06-19 11:25:29 -04:00
committed by Matthew Mongeau
parent 7ce4f001d1
commit 645a190f3a

View File

@@ -7,6 +7,7 @@ def index(request):
# TODO (cpennington): These need to be read in from the active user
org = 'mit.edu'
course = '6002xs12'
course = keystore().get_item(['i4x', org, course, 'Course', None])
name = '6.002 Spring 2012'
course = keystore().get_item(['i4x', org, course, 'Course', name])
weeks = course.get_children()
return render_to_response('index.html', {'weeks': weeks})