From 9127b58a3678954b559a4c87493dd5bf7f012a86 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 10 Aug 2023 20:23:33 +0300 Subject: [PATCH] order votes by vote creation --- files/routes/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index 0a180e6856..5a16956fc8 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -287,7 +287,7 @@ def user_voted(v, username, cls, vote_cls, template, standalone): total = listing.count() - listing = listing.order_by(cls.created_utc.desc()).offset(PAGE_SIZE * (page - 1)).limit(PAGE_SIZE).all() + listing = listing.order_by(vote_cls.created_utc.desc()).offset(PAGE_SIZE * (page - 1)).limit(PAGE_SIZE).all() listing = [x.id for x in listing] if cls == Post: