fdsfd
This commit is contained in:
parent
dd4fb5b411
commit
872b1b11eb
8 changed files with 13 additions and 14 deletions
|
@ -167,7 +167,7 @@ def post_id(pid, anything=None, v=None):
|
|||
elif sort == "old":
|
||||
comments = comments.order_by(Comment.created_utc.asc())
|
||||
elif sort == "controversial":
|
||||
comments = comments.order_by(-1 * Comment.realupvotes * Comment.realdownvotes * Comment.downvotes)
|
||||
comments = comments.order_by(-1 * Comment.realupvotes * Comment.realdownvotes * Comment.realdownvotes)
|
||||
elif sort == "top":
|
||||
comments = comments.order_by(-Comment.realupvotes - Comment.realdownvotes)
|
||||
elif sort == "bottom":
|
||||
|
@ -191,7 +191,7 @@ def post_id(pid, anything=None, v=None):
|
|||
elif sort == "old":
|
||||
comments = comments.order_by(Comment.created_utc.asc())
|
||||
elif sort == "controversial":
|
||||
comments = comments.order_by(-1 * Comment.realupvotes * Comment.realdownvotes * Comment.downvotes)
|
||||
comments = comments.order_by(-1 * Comment.realupvotes * Comment.realdownvotes * Comment.realdownvotes)
|
||||
elif sort == "top":
|
||||
comments = comments.order_by(-Comment.realupvotes - Comment.realdownvotes)
|
||||
elif sort == "bottom":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue