From 48d5e9bc65e218b0644e695da839b46a8cf197fc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 11 Dec 2021 07:02:38 +0200 Subject: [PATCH] fdsfds --- files/routes/front.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 3b717c09c..7bc3a44ee 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -255,8 +255,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words=' elif sort == "comments": posts = posts.order_by(Submission.comment_count.desc()) - if v: - size = v.frontsize + if v: size = int(v.frontsize) else: size = 25 posts = posts.offset(size * (page - 1)).limit(size+1).all()