Added ability to update all related corps

This commit is contained in:
2010-10-29 17:07:16 +01:00
parent a975e14388
commit 51c2675157

View File

@@ -88,3 +88,19 @@ class AllianceUpdate():
def job(self, args): def job(self, args):
alliance_import() alliance_import()
class CorporationUpdate():
"""
Updates all corporate objects in Auth
"""
@property
def _logger(self):
if not hasattr(self, '__logger'):
self.__logger = logging.getLogger(__name__)
return self.__logger
def job(self, args):
for corp in EVEPlayerCorporation.objects.filter(eveplayercharacter__in=EVEPlayerCharacter.objects.all()):
print corp
corp.query_and_update_corp()