From cfcc71ceeda4275fbaac5e551617724dabedbcd6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 25 Sep 2021 01:41:09 +0200 Subject: [PATCH] fds --- files/routes/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/search.py b/files/routes/search.py index 75d925012..73b98e242 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -141,7 +141,7 @@ def searchposts(v): elif sort == "comments": posts = posts.order_by(Submission.comment_count.desc()) - total = len(posts) + total = posts.count() posts = posts.offset(25 * (page - 1)).limit(26).all()