forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-25 03:33:55 +02:00
parent cfcc71ceed
commit 49513a6e1b
1 changed files with 1 additions and 0 deletions

View File

@ -218,6 +218,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
elif sort == "bottom":
posts = posts.order_by(Submission.upvotes - Submission.downvotes)
elif sort == "comments":
print("WTF")
posts = posts.order_by(Submission.comment_count.desc())
posts = posts.offset(25 * (page - 1)).limit(26).all()