def index(): """ List all of the courses associated with the user. """ user_id = g.user.id my_courses = g.user.get_courses() public_courses = Course.get_public() return render_template('courses/index.html', my_courses=my_courses, public_courses=public_courses)