From a6f79e78d24eba1f01c70e84013369996718e2d6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 6 Nov 2022 08:33:29 +0200 Subject: [PATCH] remove the "if True" --- 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 bf0bffe30d..75478c5c64 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -141,7 +141,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false" if v: size = v.frontsize or 0 else: size = PAGE_SIZE - if True and sort == "hot": + if SITE_NAME == 'WPD' and sort == "hot": posts = posts.offset(size * (page - 1)).limit(100).all() to_remove = [x.id for x in posts if x.sub == 'social'][1:] + [x.id for x in posts if x.sub == 'music'][1:] posts = [x for x in posts if x.id not in to_remove]