From 40485e9ab66402e102f358b6ba2e6d2df2865757 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 22 Sep 2022 07:15:55 +0200 Subject: [PATCH] fix cron (im stoopid) --- files/helpers/cron.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index e4bde8b1c..9529cf354 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -12,8 +12,7 @@ import files.helpers.lottery as lottery import files.helpers.offsitementions as offsitementions import files.helpers.stats as stats import files.helpers.awards as awards - -from files.routes.static import stats_cached, live_cached +import files.routes.static as route_static from sys import stdout import datetime @@ -33,8 +32,8 @@ def cron(every_5m, every_1h, every_1d, every_1mo): spin_roulette_wheel() offsitementions.offsite_mentions_task() if SITE_NAME == 'PCM': - cache.delete_memoized(live_cached()) - live_cached() + cache.delete_memoized(route_static.live_cached) + route_static.live_cached() if every_1h: awards.award_timers_bots_task()