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
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
def _map_group(item): item["member_ids"] = process_uuid_aggregate(item, "member_ids") return item