remotes/1693045480750635534/spooky-22
Aevann1 2021-09-23 20:54:22 +02:00
parent 84e363cebf
commit cf7543d948
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
elif sort == "controversial":
posts = sorted(posts.all(), key=lambda x: x.score_disputed, reverse=True)
elif sort == "top":
posts = posts.order_by(Submission.upvotes - Submission.downvotes).all()
posts = posts.order_by(Submission.downvotes - Submission.upvotes).all()
elif sort == "bottom":
posts = sorted(posts.all(), key=lambda x: x.score)
elif sort == "comments":