pull/83/head
Aevann1 2022-12-21 01:30:05 +02:00
parent 6478401e59
commit 11ed781b7a
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ def cron(every_5m, every_1h, every_1d, every_1mo):
stats.generate_charts_task(SITE)
_sub_inactive_purge_task()
site_stats = stats.stats(SITE_NAME)
cache.set(f'{SITE}_stats', site_stats)
if site_stats:
cache.set(f'{SITE}_stats', site_stats)
if every_1mo:
if KOFI_LINK: _give_monthly_marseybux_task_kofi()