fix prev commit

master
Aevann1 2022-12-20 04:30:42 +02:00
parent c3dc1dc20e
commit 6d9171bdae
1 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,6 @@ import files.helpers.offsitementions as offsitementions
import files.helpers.stats as stats
import files.routes.static as route_static
import files.routes.streamers as route_streamers
import files.helpers.stats as statshelper
from files.__main__ import cache
from files.classes import *
from files.helpers.alerts import send_repeatable_notification
@ -43,8 +42,8 @@ def cron(every_5m, every_1h, every_1d, every_1mo):
if every_1d:
stats.generate_charts_task(SITE)
_sub_inactive_purge_task()
stats = statshelper.stats(SITE_NAME)
cache.set(f'{SITE}_stats', stats)
site_stats = stats.stats(SITE_NAME)
cache.set(f'{SITE}_stats', site_stats)
if every_1mo:
if KOFI_LINK: _give_monthly_marseybux_task_kofi()