From 8707129a2e2d96a91d638268e84892ca64e7a841 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 16 Feb 2024 22:50:32 +0200 Subject: [PATCH] if not IS_LOCALHOST: --- files/helpers/cron.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 25cf318a6..106e2f7d3 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -59,11 +59,12 @@ def cron_fn(every_5m, every_1d, every_1mo): _grant_two_year_badges() g.db.commit() - reddit_mentions_task() - g.db.commit() + if not IS_LOCALHOST: + reddit_mentions_task() + g.db.commit() - lemmy_mentions_task() - g.db.commit() + lemmy_mentions_task() + g.db.commit() if every_1d or (not cache.get('stats') and not IS_LOCALHOST): if IS_HOMOWEEN():