From 91fe866f47d5f83584a01c061a113fec25153ac9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 18 Jul 2022 04:08:43 +0200 Subject: [PATCH] fix comment sorting --- files/helpers/sorting_and_time.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/helpers/sorting_and_time.py b/files/helpers/sorting_and_time.py index 6663b8727..019c36951 100644 --- a/files/helpers/sorting_and_time.py +++ b/files/helpers/sorting_and_time.py @@ -30,10 +30,8 @@ def sort_comments(sort, comments): return comments.order_by((Comment.upvotes+1)/(Comment.downvotes+1) + (Comment.downvotes+1)/(Comment.upvotes+1), Comment.downvotes.desc(), Comment.id.desc()) elif sort == "bottom": return comments.order_by(Comment.upvotes - Comment.downvotes) - elif SITE == 'watchpeopledie.co': - return comments.order_by(Comment.downvotes - Comment.upvotes, Comment.id.desc()) else: - return comments.order_by(Comment.realupvotes.desc(), Comment.id.desc()) + return comments.order_by(Comment.downvotes - Comment.upvotes, Comment.id.desc()) def sort_posts(sort, posts): if sort == "new":