From e87b4e0c641fac87a0b020e3c12dd540dfdb2a83 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 31 Jul 2021 09:05:38 +0200 Subject: [PATCH] fdfd --- drama/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drama/routes/comments.py b/drama/routes/comments.py index 70cf7c03bb..b858c6bf0f 100644 --- a/drama/routes/comments.py +++ b/drama/routes/comments.py @@ -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))