From 5bba71e75b7f2cc6c356f38b257d66ad78d53ead Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 24 Jul 2021 23:15:48 +0200 Subject: [PATCH] fd --- 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 7653c17ff..959dcf380 100644 --- a/drama/helpers/get.py +++ b/drama/helpers/get.py @@ -229,7 +229,7 @@ def get_posts(pids, sort="hot", v=None): ).order_by(None).all() - return sorted(query, key=lambda x: pids.index(x.id)) + return sorted(query, key=lambda x: x.id) def get_post_with_comments(pid, sort="top", v=None):