(list_of_emails)
return ids_to_delete
Gets a list of Contact IDs be deleted from Hubspot based on the
    allowed First Conversion (clustered) property set on those contacts.
    :param list_of_emails:
    :return: list of contact ids
Gets a list of Contact IDs be deleted from Hubspot based on the
    allowed First Conversion (clustered) property set on those contacts.
    :param list_of_emails:
    :return: list of contact ids
Gets a list of Contact IDs be deleted from Hubspot based on the allowed First Conversion ( clustered ) property set on those contacts . : param list_of_emails : : return : list of contact ids
def _get_contact_ids_to_delete(list_of_emails):
    """
    Gets a list of Contact IDs be deleted from Hubspot based on the
    allowed First Conversion (clustered) property set on those contacts.
    :param list_of_emails:
    :return: list of contact ids
    """
    hubspot_contacts = _get_contacts_from_hubspot(list_of_emails)
    ids_to_delete = []
    for contact_id, data in hubspot_contacts.items():
        first_conversion_status = data.get(
            'properties', {}
        ).get('first_conversion_clustered_', {}).get('value')

        # If a user's first conversion IS in the allowed list, it means
        # they have directly interacted with us and we want to keep them
        # in the email list. However, we will not send project data
        # about them to HubSpot as they will still be blocked from
        # updates in track_periodic_data.
        if first_conversion_status not in ALLOWED_CONVERSIONS:
            ids_to_delete.append(contact_id)
    return ids_to_delete
def _get_contact_ids_to_delete ( list_of_emails ) : hubspot_contacts = _get_contacts_from_hubspot ( list_of_emails ) ids_to_delete = [ ] for contact_id , data in hubspot_contacts . items ( ) : first_conversion_status = data . get ( 'properties' , { } ) . get ( 'first_conversion_clustered_' , { } ) . get ( 'value' ) # If a user's first conversion IS in the allowed list, it means # they have directly interacted with us and we want to keep them # in the email list. However, we will not send project data # about them to HubSpot as they will still be blocked from # updates in track_periodic_data. if first_conversion_status not in ALLOWED_CONVERSIONS : ids_to_delete . append ( contact_id ) return ids_to_delete