[FIX] crontab arguments are of type string, not int

This commit is contained in:
Peter Pfeufer 2023-07-12 13:11:18 +02:00
parent 6f4dffe930
commit dcd6bd1b36
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ By default Corp Stats are only updated on demand. If you want to automatically r
```python ```python
CELERYBEAT_SCHEDULE['update_all_corpstats'] = { CELERYBEAT_SCHEDULE['update_all_corpstats'] = {
'task': 'allianceauth.corputils.tasks.update_all_corpstats', 'task': 'allianceauth.corputils.tasks.update_all_corpstats',
'schedule': crontab(minute=0, hour="*/6"), 'schedule': crontab(minute="0", hour="*/6"),
} }
``` ```

View File

@ -29,7 +29,7 @@ DISCORD_SYNC_NAMES = False
CELERYBEAT_SCHEDULE['discord.update_all_usernames'] = { CELERYBEAT_SCHEDULE['discord.update_all_usernames'] = {
'task': 'discord.update_all_usernames', 'task': 'discord.update_all_usernames',
'schedule': crontab(minute=0, hour='*/12'), 'schedule': crontab(minute='0', hour='*/12'),
} }
``` ```