mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Added ability to update all related corps
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user