From c7f606baa9d42d9f82b0d063b9ffcccee9d99e02 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 30 Jul 2023 13:00:56 +0300 Subject: [PATCH] increase dropoff exponenet to 1.4 --- files/helpers/sorting_and_time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sorting_and_time.py b/files/helpers/sorting_and_time.py index dda7b244e..02bef4bb1 100644 --- a/files/helpers/sorting_and_time.py +++ b/files/helpers/sorting_and_time.py @@ -29,7 +29,7 @@ def sort_objects(sort, objects, cls): ti = int(time.time()) + 3600 metric = cls.realupvotes if cls.__name__ == "Post": metric += cls.comment_count/5 - return objects.order_by(-1000000*(metric + 1)/(func.power(((ti - cls.created_utc)/1000), 1.35)), cls.created_utc.desc()) + return objects.order_by(-1000000*(metric + 1)/(func.power(((ti - cls.created_utc)/1000), 1.4)), cls.created_utc.desc()) elif sort == "views" and cls.__name__ == "Post": return objects.order_by(cls.views.desc(), cls.created_utc.desc()) elif sort == "bump" and cls.__name__ == "Post":