From 6d9171bdae292fa43f7e50aa54a27242d068b3fd Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 20 Dec 2022 04:30:42 +0200 Subject: [PATCH] fix prev commit --- files/helpers/cron.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index eba7a17f4..6f8f65f04 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -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()