fd
This commit is contained in:
parent
626795f9cb
commit
d2c84bdb62
20 changed files with 57 additions and 332 deletions
|
@ -145,7 +145,7 @@ def post_id(pid, anything=None, v=None):
|
|||
elif sort == "controversial":
|
||||
comments = comments.order_by(-1 * Comment.upvotes * Comment.downvotes * Comment.downvotes)
|
||||
elif sort == "top":
|
||||
comments = comments.order_by(Comment.downvotes - Comment.upvotes)
|
||||
comments = comments.order_by(Comment.upvotes + Comment.downvotes)
|
||||
elif sort == "bottom":
|
||||
comments = comments.order_by(Comment.upvotes - Comment.downvotes)
|
||||
|
||||
|
@ -170,7 +170,7 @@ def post_id(pid, anything=None, v=None):
|
|||
elif sort == "controversial":
|
||||
comments = comments.order_by(-1 * Comment.upvotes * Comment.downvotes * Comment.downvotes)
|
||||
elif sort == "top":
|
||||
comments = comments.order_by(Comment.downvotes - Comment.upvotes)
|
||||
comments = comments.order_by(Comment.upvotes + Comment.downvotes)
|
||||
elif sort == "bottom":
|
||||
comments = comments.order_by(Comment.upvotes - Comment.downvotes)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue