From 77fa9de79ae2f1d1554d648e2c79cb1d0d1b7476 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 22 Sep 2022 07:02:10 +0200 Subject: [PATCH] fix cronjob --- 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 c5393f5d2..e8c18212e 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -29,8 +29,9 @@ def cron(every_5m, every_1h, every_1d, every_1mo): if every_5m: lottery.check_if_end_lottery_task() spin_roulette_wheel() - g.db.commit() offsitementions.offsite_mentions_task() + if SITE_NAME == 'PCM': + route_static.live_cached() if every_1h: awards.award_timers_bots_task() @@ -39,8 +40,6 @@ def cron(every_5m, every_1h, every_1d, every_1mo): stats.generate_charts_task(SITE) route_static.stats_cached() sub_inactive_purge_task() - if SITE_NAME == 'PCM': - route_static.live_cached() if every_1mo: if KOFI_LINK: give_monthly_marseybux_task_kofi()