From 6ec2239f6f8d7e44a0e208f4e534c78c5f81d403 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 13 Oct 2021 15:03:08 +0200 Subject: [PATCH] gfgf --- files/routes/votes.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index d6656f0d4..32d879772 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -25,27 +25,26 @@ def admin_vote_info_get(v): ups = g.db.query(Vote ).options(joinedload(Vote.user) ).filter_by(submission_id=thing.id, vote_type=1 - ).all() + ).order_by(Vote.id).all() downs = g.db.query(Vote ).options(joinedload(Vote.user) ).filter_by(submission_id=thing.id, vote_type=-1 - ).all() + ).order_by(Vote.id).all() elif isinstance(thing, Comment): ups = g.db.query(CommentVote ).options(joinedload(CommentVote.user) ).filter_by(comment_id=thing.id, vote_type=1 - ).all() + ).order_by(CommentVote.id).all() downs = g.db.query(CommentVote ).options(joinedload(CommentVote.user) ).filter_by(comment_id=thing.id, vote_type=-1 - ).all() + ).order_by(CommentVote.id).all() - else: - abort(400) + else: abort(400) return render_template("votes.html", v=v,