remotes/1693045480750635534/spooky-22
Aevann1 2021-09-25 03:35:51 +02:00
parent 49513a6e1b
commit 564a74a2a8
1 changed files with 2 additions and 0 deletions

View File

@ -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()