vvv
This commit is contained in:
parent
ef4a414275
commit
47d19b5b4e
12 changed files with 44 additions and 40 deletions
|
@ -255,7 +255,7 @@ def searchcomments(v):
|
|||
elif sort == "controversial":
|
||||
comments = comments.order_by(-1 * Comment.upvotes * Comment.downvotes * Comment.downvotes)
|
||||
elif sort == "top":
|
||||
comments = comments.order_by(Comment.realupvotes.desc())
|
||||
comments = comments.order_by(Comment.downvotes - Comment.upvotes)
|
||||
elif sort == "bottom":
|
||||
comments = comments.order_by(Comment.upvotes - Comment.downvotes)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue