# Path: recruit_app/extensions.py



import evelink.api
import evelink.char
import evelink.eve
from flask import current_app
from recruit_app.extensions import cache_extension
        except evelink.api.APIError as error:
            current_app.logger.error(error)

        return chars

    @staticmethod
    def get_corporation_ticker_from_id(corp_id):
        ticker = ""
        try:
            api = EveApiManager.evelink_api()
            corp = evelink.corp.Corp(api)
            response = corp.corporation_sheet(corp_id)
            ticker = response[0]['ticker']
        except evelink.api.APIError as error:
            current_app.logger.error(error)

        return ticker

    @staticmethod
    def get_alliance_information(alliance_id):
        results = {}
        try:
            alliances = EveApiManager.get_alliance_info()
            results = alliances[0][int(alliance_id)]
        except evelink.api.APIError as error:
            current_app.logger.error(error)

        return results

    @staticmethod

# Path: recruit_app/extensions.py



# Path: recruit_app/user/eve_api_manager.py
import evelink.api
import evelink.char
import evelink.eve
from flask import current_app
from recruit_app.extensions import cache_extension

        except evelink.api.APIError as error:
            current_app.logger.error(error)

        return chars

    @staticmethod
    def get_corporation_ticker_from_id(corp_id):
        ticker = ""
        try:
            api = EveApiManager.evelink_api()
            corp = evelink.corp.Corp(api)
            response = corp.corporation_sheet(corp_id)
            ticker = response[0]['ticker']
        except evelink.api.APIError as error:
            current_app.logger.error(error)

        return ticker

    @staticmethod
    def get_alliance_information(alliance_id):
        results = {}
        try:
            alliances = EveApiManager.get_alliance_info()
            results = alliances[0][int(alliance_id)]
        except evelink.api.APIError as error:
            current_app.logger.error(error)

        return results

    @staticmethod

    @cache_extension.cached(timeout=3600, key_prefix='get_alliance_info')