From 564a74a2a80e005d3997b8538e686cea08a8c311 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 25 Sep 2021 03:35:51 +0200 Subject: [PATCH] fds --- files/routes/front.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/front.py b/files/routes/front.py index d1d1af7f0d..36cdd2b366 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -219,7 +219,9 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words=' posts = posts.order_by(Submission.upvotes - Submission.downvotes) elif sort == "comments": print("WTF") + print([x.comment_count for x in posts.all()]) posts = posts.order_by(Submission.comment_count.desc()) + return([x.comment_count for x in posts.all()]) posts = posts.offset(25 * (page - 1)).limit(26).all()