예제 #1
0
def get_courses():
    courses = API.get_courses()
    return Response(dumps(courses), mimetype='application/json')
예제 #2
0
 def test_get_courses(self):
     courses = API.get_courses()
     return
예제 #3
0
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)