forked from rDrama/rDrama
fdfd
parent
fe0a581aab
commit
e87b4e0c64
|
@ -139,7 +139,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
|
|||
elif sort == "old":
|
||||
output = comms.order_by(Comment.created_utc.asc()).all()
|
||||
elif sort == "controversial":
|
||||
output = sorted(comms.all(), key=lambda x: x[0].score_disputed, reverse=True)
|
||||
output = sorted(comms.all(), key=lambda x: x.score_disputed, reverse=True)
|
||||
elif sort == "random":
|
||||
c = comms.all()
|
||||
output = random.sample(c, k=len(c))
|
||||
|
|
Loading…
Reference in New Issue