mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-18 12:19:29 +00:00
Avoid hitting the API for NPC characters
This commit is contained in:
@@ -117,6 +117,11 @@ def link_ceo(corporation, character):
|
||||
char = EVEPlayerCharacter.objects.get(id=character)
|
||||
corp.update(ceo_character=char)
|
||||
|
||||
# Fix the reverse link if needed
|
||||
if char.corporation is None:
|
||||
char.corporation = corp
|
||||
char.save()
|
||||
|
||||
|
||||
@task(ignore_result=True)
|
||||
def import_corp_members(key_id, character_id):
|
||||
|
||||
Reference in New Issue
Block a user