示例#1
0
def close_esi_fleet(fatlink: AFatLink, reason: str) -> None:
    """
    Closing ESI fleet
    :param fatlink:
    :param reason:
    """

    logger.info(
        "Closing ESI FAT link with hash {fatlink_hash}. Reason: {reason}".
        format(fatlink_hash=fatlink.hash, reason=reason))

    fatlink.is_registered_on_esi = False
    fatlink.save()
示例#2
0
def close_esi_fleet(fatlink: AFatLink, reason: str) -> None:
    """
    Closing ESI fleet
    :param fatlink:
    :type fatlink:
    :param reason:
    :type reason:
    :return:
    :rtype:
    """

    logger.info(
        f'Closing ESI FAT link with hash "{fatlink.hash}". Reason: {reason}')

    fatlink.is_registered_on_esi = False
    fatlink.save()