mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Added AllianceUpdate cronjob
This commit is contained in:
@@ -6,4 +6,5 @@ ROOT=/home/matalok/auth/auth
|
||||
@hourly $ROOT/run-cron.py sso.cron RemoveInvalidUsers > $ROOT/logs/auth-update.log 2>&1
|
||||
@daily $ROOT/run-cron.py registration.cron RemoveExpiredProfiles > /dev/null 2>&1
|
||||
@daily $ROOT/run-cron.py eve_api.cron CorpManagementUpdate > $ROOT/logs/corpman-update.log 2>&1
|
||||
0 */6 * * * $ROOT/run-cron.py eve_api.cron AllianceUpdate > $ROOT/logs/alliance-update.log 2>&1
|
||||
@daily $ROOT/run-cron.py eve_proxy.cron ClearStaleCache > $ROOT/logs/cache-clear.log 2>&1
|
||||
|
||||
@@ -69,3 +69,19 @@ class CorpManagementUpdate():
|
||||
#api = director.eveaccount
|
||||
api = EVEAccount.objects.get(characters__in=[director])
|
||||
pull_corp_members(api.api_key, api.api_user_id, director.id)
|
||||
|
||||
class AllianceUpdate():
|
||||
"""
|
||||
Pulls the AllianceList.xml.aspx and updates the alliance objects
|
||||
"""
|
||||
|
||||
@property
|
||||
def _logger(self):
|
||||
if not hasattr(self, '__logger'):
|
||||
self.__logger = logging.getLogger(__name__)
|
||||
return self.__logger
|
||||
|
||||
def job(self):
|
||||
from eve_api.api_puller.alliances import __start_full_import
|
||||
__start_full_import()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user