move _sub_inactive_purge_task to the bottom since it has a flush

pull/173/head
Aevann 2023-08-02 00:52:17 +03:00
parent 8caa93f9cd
commit 84191d224b
1 changed files with 2 additions and 2 deletions

View File

@ -44,13 +44,13 @@ def cron_fn(every_5m, every_1d):
if every_1d:
stats.generate_charts_task(SITE)
_sub_inactive_purge_task()
cache.set('stats', stats.stats(), timeout=CRON_CACHE_TIMEOUT)
_generate_emojis_zip()
_leaderboard_task()
_sub_inactive_purge_task()
g.db.commit()
except:
print(traceback.format_exc(), flush=True)