mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Corp updates are included in the characters, so seperate corp update is optional
This commit is contained in:
@@ -9,6 +9,8 @@ class UpdateAPIs():
|
||||
Updates all Eve API elements in the database
|
||||
"""
|
||||
|
||||
settings = { 'update_corp': False }
|
||||
|
||||
@property
|
||||
def _logger(self):
|
||||
if not hasattr(self, '__logger'):
|
||||
@@ -30,9 +32,10 @@ class UpdateAPIs():
|
||||
|
||||
acc.save()
|
||||
|
||||
for corp in EVEPlayerCorporation.objects.all():
|
||||
try:
|
||||
corp.query_and_update_corp()
|
||||
except:
|
||||
self._logger.error('Error updating %s' % corp)
|
||||
continue
|
||||
if self.settings['update_corp']:
|
||||
for corp in EVEPlayerCorporation.objects.all():
|
||||
try:
|
||||
corp.query_and_update_corp()
|
||||
except:
|
||||
self._logger.error('Error updating %s' % corp)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user