def update_parent_sequence_map(child_part, delete=False):
if child_part.has_parent_part():<EOL><INDENT>object_map = child_part.get_assessment_part()._my_map<EOL>database = '<STR_LIT>'<EOL>collection_type = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>object_map = child_part.get_assessment()._my_map<EOL>database = '<STR_LIT>'<EOL>collection_type = '<STR_LIT>'<EOL><DEDENT>collection = JSONClientValidated(database,<EOL>collection=collection_type,<EOL>runtime=child_part._runtime)<EOL>if delete and '<STR_LIT>' in object_map:<EOL><INDENT>object_map['<STR_LIT>'].remove(str(child_part.get_id()))<EOL><DEDENT>elif not delete:<EOL><INDENT>if '<STR_LIT>' not in object_map:<EOL><INDENT>object_map['<STR_LIT>'] = []<EOL><DEDENT>object_map['<STR_LIT>'].append(str(child_part.get_id()))<EOL><DEDENT>collection.save(object_map)<EOL>
Updates the child map of a simple sequence assessment assessment part