Beispiel #1
0
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')
Beispiel #2
0
 def test_get_structure(self):
     tree = API.get_structure('55b1387256c02c5da9b2e185')
     return