mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Ignore CEO characters with the ID 1 (aka, 'EVE System')
This commit is contained in:
@@ -97,11 +97,15 @@ def import_corp_details_func(corp_id, log=logging.getLogger(__name__)):
|
||||
|
||||
if int(d['allianceID']):
|
||||
corpobj.alliance, created = EVEPlayerAlliance.objects.get_or_create(id=d['allianceID'])
|
||||
|
||||
if int(d['ceoID']) > 1:
|
||||
import_eve_character.delay(d['ceoID'], callback=link_ceo.subtask(corporation=corpobj.id))
|
||||
else:
|
||||
corpobj.ceo_character = None
|
||||
|
||||
corpobj.api_last_updated = datetime.utcnow()
|
||||
corpobj.save()
|
||||
|
||||
import_eve_character.delay(d['ceoID'], callback=link_ceo.subtask(corporation=corpobj.id))
|
||||
|
||||
return EVEPlayerCorporation.objects.get(pk=corpobj.pk)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user