def get_courses(): courses = API.get_courses() return Response(dumps(courses), mimetype='application/json')
def test_get_courses(self): courses = API.get_courses() return
def all_courses(): courses = API.get_courses() course_keys = [CourseLocator(org=course['org'], course=course['course'], run=course['run']) for course in courses] return render_template("all_courses.html", courses=course_keys)