From 49a179e91cff7926f04c83d7f354bbdefecdac54 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 25 Jul 2021 00:04:42 +0200 Subject: [PATCH] fdfd --- drama/helpers/get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drama/helpers/get.py b/drama/helpers/get.py index 4b04fb3f8..0deffbf6d 100644 --- a/drama/helpers/get.py +++ b/drama/helpers/get.py @@ -444,7 +444,7 @@ def get_comments(cids, v=None, sort="new", output = g.db.query(Comment).options().filter(Comment.id.in_(cids)).order_by(Comment.id.desc()).all() - output = sorted(output, key=lambda x: cids.index(x.id)) + return sorted(output, key=lambda x: cids.index(x.id)) def get_board(bid, graceful=False):