From 0b4582f2aedd270487a6eea1db5ae4d6a51f24ce Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 6 Sep 2023 00:57:46 +0300 Subject: [PATCH] fix transaction timeout --- files/helpers/cron.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 4f66768ea..c3d940d98 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -45,6 +45,8 @@ def cron_fn(every_5m, every_1d): _grant_two_year_badges() if every_1d or not cache.get('stats'): + g.db.commit() + _generate_emojis_zip() if FEATURES['ASSET_SUBMISSIONS']: