mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Set the data, add to crontab list
This commit is contained in:
@@ -8,3 +8,4 @@ ROOT=/home/matalok/auth/auth
|
||||
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
|
||||
@daily $ROOT/run-cron.py sso.cron UpdateServicegroups > $ROOT/logs/servicegroup-update.log 2>&1
|
||||
0 1 * * 5 $ROOT/run-cron.py eve_api.cron CorporationUpdate > $ROOT/logs/corporation-update.log 2>&1
|
||||
|
||||
@@ -101,6 +101,6 @@ class CorporationUpdate():
|
||||
return self.__logger
|
||||
|
||||
def job(self, args):
|
||||
for corp in EVEPlayerCorporation.objects.filter(eveplayercharacter__in=EVEPlayerCharacter.objects.all()):
|
||||
for corp in set(EVEPlayerCorporation.objects.filter(eveplayercharacter__in=EVEPlayerCharacter.objects.all())):
|
||||
print corp
|
||||
corp.query_and_update_corp()
|
||||
|
||||
Reference in New Issue
Block a user