def get_courses(course_ids): course_ids = [c.lower() for c in course_ids.split(',')] courses = m.Course.objects(id__in=course_ids, ) # TODO(mack): not currently being called, fix it when it is needed # course_objs = map(clean_course, courses) course_objs = [] professor_objs = m.Professor.get_reduced_professor_for_courses(courses) return util.json_dumps({ 'course_objs': course_objs, 'professor_objs': professor_objs, })
def get_courses(course_ids): course_ids = [c.lower() for c in course_ids.split(',')] courses = m.Course.objects( id__in=course_ids, ) # TODO(mack): not currently being called, fix it when it is needed # course_objs = map(clean_course, courses) course_objs = [] professor_objs = m.Professor.get_reduced_professor_for_courses(courses) return util.json_dumps({ 'course_objs': course_objs, 'professor_objs': professor_objs, })