mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 22:40:16 +02:00
Fixed wrong keyword in tasks
This commit is contained in:
parent
c4801c8b42
commit
f916cf5162
@ -108,6 +108,7 @@ def remove_from_databases(user, groups, syncgroups):
|
||||
update_forum_groups(user)
|
||||
|
||||
|
||||
#run every minute
|
||||
@periodic_task(run_every=crontab(minute="*/1"))
|
||||
def run_databaseUpdate():
|
||||
users = User.objects.all()
|
||||
@ -118,7 +119,8 @@ def run_databaseUpdate():
|
||||
remove_from_databases(user, groups, syncgroups)
|
||||
|
||||
|
||||
@periodic_task(run_every=crontab(day="*/1"))
|
||||
#run at midnight everyday
|
||||
@periodic_task(run_every=crontab(minute=0, hour=0))
|
||||
def run_api_refresh():
|
||||
users = User.objects.all()
|
||||
for user in users:
|
||||
|
Loading…
x
Reference in New Issue
Block a user