(upstream_domain_name, user, account)
return list({domain for domain in domains
                 if is_domain_available_to_link(upstream_domain_name, domain, user)})
Finds available domains to link based on domains associated with the provided account
Finds available domains to link based on domains associated with the provided account
Finds available domains to link based on domains associated with the provided account
def get_available_domains_to_link_for_account(upstream_domain_name, user, account):
    """
    Finds available domains to link based on domains associated with the provided account
    """
    domains = account.get_domains() if account else []
    return list({domain for domain in domains
                 if is_domain_available_to_link(upstream_domain_name, domain, user)})
def get_available_domains_to_link_for_account ( upstream_domain_name , user , account ) : domains = account . get_domains ( ) if account else [ ] return list ( { domain for domain in domains if is_domain_available_to_link ( upstream_domain_name , domain , user ) } )