From 2c0602049c218d38c78549ddb11501bfb28e04d2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 2 Aug 2024 16:05:03 +0300 Subject: [PATCH] fix pin filtering --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 7dd4f7835..e5aee985e 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -203,7 +203,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words=' for category in categories.items(): if not category: filtered = (x.lower() for x in CATEGORIES_HOLES[category]) - pins = pins.filter(Post.hole.notin_(CATEGORIES_HOLES[filtered])) + pins = pins.filter(Post.hole.notin_(filtered)) pins = pins.order_by(Post.created_utc.desc()).all() posts = pins + posts