From 2e97bff1b0e4197946928bf9412f965fdc81e2bf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 25 Sep 2021 01:39:30 +0200 Subject: [PATCH] fds --- files/routes/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/search.py b/files/routes/search.py index f6534f9b0..75d925012 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -141,10 +141,10 @@ def searchposts(v): elif sort == "comments": posts = posts.order_by(Submission.comment_count.desc()) - posts = posts.offset(25 * (page - 1)).limit(26).all() - total = len(posts) + posts = posts.offset(25 * (page - 1)).limit(26).all() + ids = [x[0] for x in posts]