api/routes/family.py
async def update_family(
    family: FamilyUpdateModel, connection: Connection = get_projectless_db_connection
):
    """Update information for a single family"""
    family_layer = FamilyLayer(connection)
    return {
        'success': await family_layer.update_family(
            id_=family.id,
            external_id=family.external_id,
            description=family.description,
            coded_phenotype=family.coded_phenotype,
        )
    }
Update information for a single family
Update information for a single family
Update information for a single family
async def update_family(
    family: FamilyUpdateModel, connection: Connection = get_projectless_db_connection
):
    family_layer = FamilyLayer(connection)
    return {
        'success': await family_layer.update_family(
            id_=family.id,
            external_id=family.external_id,
            description=family.description,
            coded_phenotype=family.coded_phenotype,
        )
    }
async def update_family ( family : FamilyUpdateModel , connection : Connection = get_projectless_db_connection ) : family_layer = FamilyLayer ( connection ) return { 'success' : await family_layer . update_family ( id_ = family . id , external_id = family . external_id , description = family . description , coded_phenotype = family . coded_phenotype , ) }
Update information for a single family
Update information for a single family
"""Update information for a single family"""
family
FamilyUpdateModel
connection
Connection