mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Added faster Alliance update function
This commit is contained in:
@@ -213,8 +213,6 @@ class EVEPlayerCorporation(EVEAPIModel):
|
||||
EVE API service.
|
||||
"""
|
||||
|
||||
from eve_api.api_puller.accounts import import_eve_character
|
||||
|
||||
# Pull XML from the EVE API via eve_proxy.
|
||||
dom = EVEPlayerCorporation.objects.api_corp_sheet_xml(self.id)
|
||||
|
||||
@@ -249,6 +247,8 @@ class EVEPlayerCorporation(EVEAPIModel):
|
||||
# Something weird has happened
|
||||
continue
|
||||
|
||||
from eve_api.tasks import import_eve_character
|
||||
|
||||
ceoid = dom.getElementsByTagName('ceoID')[0].firstChild.nodeValue
|
||||
self.ceo_character = import_eve_character(ceoid)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user