From c02e1bd76f6d6fce6cfe0a49a551ed1accd6419d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 22 Sep 2022 07:11:50 +0200 Subject: [PATCH] fix cron --- files/helpers/cron.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index fd66ebe74..e4bde8b1c 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -12,7 +12,8 @@ import files.helpers.lottery as lottery import files.helpers.offsitementions as offsitementions import files.helpers.stats as stats import files.helpers.awards as awards -import files.routes.static as route_static + +from files.routes.static import stats_cached, live_cached from sys import stdout import datetime @@ -32,8 +33,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(route_static.live_cached()) - route_static.live_cached() + cache.delete_memoized(live_cached()) + live_cached() if every_1h: awards.award_timers_bots_task()