From dcd6bd1b36aa67d5b3dc61f814df9ba8f64a56e9 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Wed, 12 Jul 2023 13:11:18 +0200 Subject: [PATCH] [FIX] `crontab` arguments are of type `string`, not `int` --- docs/features/apps/corpstats.md | 2 +- docs/features/services/discord.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/apps/corpstats.md b/docs/features/apps/corpstats.md index 2e4d82ff..b25f1f3c 100644 --- a/docs/features/apps/corpstats.md +++ b/docs/features/apps/corpstats.md @@ -113,7 +113,7 @@ By default Corp Stats are only updated on demand. If you want to automatically r ```python CELERYBEAT_SCHEDULE['update_all_corpstats'] = { 'task': 'allianceauth.corputils.tasks.update_all_corpstats', - 'schedule': crontab(minute=0, hour="*/6"), + 'schedule': crontab(minute="0", hour="*/6"), } ``` diff --git a/docs/features/services/discord.md b/docs/features/services/discord.md index 9c1011bc..72159c56 100644 --- a/docs/features/services/discord.md +++ b/docs/features/services/discord.md @@ -29,7 +29,7 @@ DISCORD_SYNC_NAMES = False CELERYBEAT_SCHEDULE['discord.update_all_usernames'] = { 'task': 'discord.update_all_usernames', - 'schedule': crontab(minute=0, hour='*/12'), + 'schedule': crontab(minute='0', hour='*/12'), } ```