From c16371c1ac0a6089d302cbf110c29f123d0bdbba Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 5 May 2023 09:13:29 +0300 Subject: [PATCH] Revert "fix hat sorting by owners on non-rdrama sites" This reverts commit f5414aa67cb4b618c9f0986f2c0e11e157c73e8c. --- files/routes/hats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/hats.py b/files/routes/hats.py index 976df2bb4..789c9f9ce 100644 --- a/files/routes/hats.py +++ b/files/routes/hats.py @@ -42,7 +42,7 @@ def hats(v:User): if SITE == 'rdrama.net': hats = sorted(hats.all(), key=lambda x: hat_count.index(x[0].id) if x[0].id in hat_count else 0) else: - hats = sorted(hats.all(), key=lambda x: hat_count.index(x.id) if x.id in hat_count else 0, reverse=True) + hats = sorted(hats.all(), key=lambda x: hat_count.index(x.id) if x.id in hat_count else 0) firstrange = PAGE_SIZE * (page - 1) secondrange = firstrange + PAGE_SIZE