Esempio n. 1
0
 def create_corporation_info(corp_id, corp_name, corp_ticker, corp_member_count, is_blue, alliance):
     if not EveManager.check_if_corporation_exists_by_id(corp_id):
         corp_info = EveCorporationInfo()
         corp_info.corporation_id = corp_id
         corp_info.corporation_name = corp_name
         corp_info.corporation_ticker = corp_ticker
         corp_info.member_count = corp_member_count
         corp_info.is_blue = is_blue
         if alliance:
             corp_info.alliance = alliance
         corp_info.save()
Esempio n. 2
0
 def create_corporation_info(corp_id, corp_name, corp_ticker,
                             corp_member_count, is_blue, alliance):
     if not EveManager.check_if_corporation_exists_by_id(corp_id):
         corp_info = EveCorporationInfo()
         corp_info.corporation_id = corp_id
         corp_info.corporation_name = corp_name
         corp_info.corporation_ticker = corp_ticker
         corp_info.member_count = corp_member_count
         corp_info.is_blue = is_blue
         if alliance:
             corp_info.alliance = alliance
         corp_info.save()
Esempio n. 3
0
 def create_corporation_info(corp_id, corp_name, corp_ticker, corp_member_count, is_blue, alliance):
     logger.debug("Creating corp info for corp %s id %s" % (corp_name, corp_id))
     if not EveManager.check_if_corporation_exists_by_id(corp_id):
         corp_info = EveCorporationInfo()
         corp_info.corporation_id = corp_id
         corp_info.corporation_name = corp_name
         corp_info.corporation_ticker = corp_ticker
         corp_info.member_count = corp_member_count
         corp_info.is_blue = is_blue
         if alliance:
             corp_info.alliance = alliance
         corp_info.save()
         logger.info("Created corp model for %s" % corp_info)
     else:
         logger.warn("Attempting to create existing corp model with id %s" % corp_id)