Example #1
0
def _map_lesson(item):
    item["resources"] = json.loads(item["resources"])
    item["node_ids"] = [
        resource["contentnode_id"] for resource in item["resources"]
    ]
    item["assignments"] = process_uuid_aggregate(item, "assignments")
    return item
Example #2
0
def _map_exam(item):
    item["question_sources"] = json.loads(item["question_sources"])
    item["assignments"] = item.pop("exam_assignments")
    item["assignments"] = process_uuid_aggregate(item, "assignments")
    return item
Example #3
0
def _map_group(item):
    item["member_ids"] = process_uuid_aggregate(item, "member_ids")
    return item