forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-07-31 09:05:38 +02:00
parent fe0a581aab
commit e87b4e0c64
1 changed files with 1 additions and 1 deletions

View File

@ -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))