Now populates CEO character for corporations

This commit is contained in:
2010-05-13 11:27:06 +01:00
parent 75663c308b
commit 1b5a4f3412

View File

@@ -226,5 +226,8 @@ class EVEPlayerCorporation(EVEAPIModel):
# Something weird has happened
continue
ceoid = dom.getElementsByTagName('ceoID')[0].firstChild.nodeValue
self.ceo_character, created = EVEPlayerCharacter.objects.get_or_create(id=ceoid)
self.api_last_updated = datetime.utcnow()
self.save()