From 1f62c63cf44a108c3a0f81ded8537264740e93b5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 1 May 2023 23:15:13 +0300 Subject: [PATCH] fix pagesize on wpd --- 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 92defb6ee..90f1e0d6a 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -129,7 +129,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words=' for h in LIMITED_WPD_HOLES: to_remove += [x.id for x in posts if x.sub == h][1:] - posts = [x for x in posts if x.id not in to_remove] + posts = [x for x in posts if x.id not in to_remove][:size] else: posts = posts.limit(size).all()