Added faster Alliance update function

This commit is contained in:
2010-12-01 17:15:30 +00:00
parent f5ece1c8c3
commit 981e042979
3 changed files with 39 additions and 5 deletions

View File

@@ -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)