From 4aedbc9b2e6c650d745097cd8f2944b28d234df2 Mon Sep 17 00:00:00 2001 From: TLSM Date: Mon, 14 Nov 2022 04:14:41 -0500 Subject: [PATCH] Fix imports for sub move frontlist invalidation. --- files/helpers/cron.py | 2 -- files/routes/reporting.py | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 6bb9768d5..9a3ca071f 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -105,8 +105,6 @@ def sub_inactive_purge_task(): for x in dead_holes: g.db.delete(x) - cache.delete_memoized(frontlist) - return True diff --git a/files/routes/reporting.py b/files/routes/reporting.py index a0b88e606..ca3f80754 100644 --- a/files/routes/reporting.py +++ b/files/routes/reporting.py @@ -6,6 +6,7 @@ from flask import g from files.__main__ import app, limiter, cache from os import path from files.helpers.sanitize import filter_emojis_only +from files.routes.front import frontlist @app.post("/report/post/") @limiter.limit(DEFAULT_RATELIMIT_SLOWER)