def create_alliance_info(alliance_id, alliance_name, alliance_ticker, alliance_executor_corp_id, alliance_member_count, is_blue): if not EveManager.check_if_alliance_exists_by_id(alliance_id): alliance_info = EveAllianceInfo() alliance_info.alliance_id = alliance_id alliance_info.alliance_name = alliance_name alliance_info.alliance_ticker = alliance_ticker alliance_info.executor_corp_id = alliance_executor_corp_id alliance_info.member_count = alliance_member_count alliance_info.is_blue = is_blue alliance_info.save()
def create_alliance_info(alliance_id, alliance_name, alliance_ticker, alliance_executor_corp_id, alliance_member_count, is_blue): logger.debug("Creating alliance info for alliance %s id %s" % (alliance_name, alliance_id)) if not EveManager.check_if_alliance_exists_by_id(alliance_id): alliance_info = EveAllianceInfo() alliance_info.alliance_id = alliance_id alliance_info.alliance_name = alliance_name alliance_info.alliance_ticker = alliance_ticker alliance_info.executor_corp_id = alliance_executor_corp_id alliance_info.member_count = alliance_member_count alliance_info.is_blue = is_blue alliance_info.save() logger.info("Created alliance model for %s" % alliance_info) else: logger.warn("Attempting to create existing alliance model with id %s" % alliance_id)
def create_alliance_info(alliance_id, alliance_name, alliance_ticker, alliance_executor_corp_id, alliance_member_count, is_blue, is_blue_10): logger.debug("Creating alliance info for alliance %s id %s" % (alliance_name, alliance_id)) if not EveManager.check_if_alliance_exists_by_id(alliance_id): alliance_info = EveAllianceInfo() alliance_info.alliance_id = alliance_id alliance_info.alliance_name = alliance_name alliance_info.alliance_ticker = alliance_ticker alliance_info.executor_corp_id = alliance_executor_corp_id alliance_info.member_count = alliance_member_count alliance_info.is_blue = is_blue alliance_info.is_blue_10 = is_blue_10 alliance_info.save() logger.info("Created alliance model for %s" % alliance_info) else: logger.warn("Attempting to create existing alliance model with id %s" % alliance_id)