forked from rDrama/rDrama
1
0
Fork 0
Aevann 2023-05-12 18:39:45 +03:00
parent c7a7d6a2b9
commit 4cf23b106c
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def sort_objects(sort, objects, cls):
ti = int(time.time()) + 3600
metric = cls.realupvotes
if cls.__name__ == "Submission": metric += cls.comment_count/5
return objects.order_by(-1000000*(metric + 1)/(func.power(((ti - cls.created_utc)/1000), 1.5)), cls.created_utc.desc())
return objects.order_by(-1000000*(metric + 1)/(func.power(((ti - cls.created_utc)/1000), 1.35)), cls.created_utc.desc())
elif sort == "views" and cls.__name__ == "Submission":
return objects.order_by(cls.views.desc(), cls.created_utc.desc())
elif sort == "bump" and cls.__name__ == "Submission":