def get_course_block_counts_by_id(course_id): try: structure_id = API.get_structure(course_id) except API.CourseNotFound: abort(404) counts = API.get_block_counts(structure_id['_id']) return Response(dumps(counts), mimetype='application/json')
def test_get_structure(self): tree = API.get_structure('55b1387256c02c5da9b2e185') return