Revert "minor change in sorting_and_time"

This reverts commit 3a3cb0da4d.
master
Aevann1 2022-10-13 18:21:26 +02:00
parent 6cf3ac2cc5
commit 948bd21f9b
1 changed files with 1 additions and 1 deletions

View File

@ -42,5 +42,5 @@ def sort_objects(sort, objects, cls, include_shadowbanned=False):
return objects.order_by((cls.upvotes+1)/(cls.downvotes+1) + (cls.downvotes+1)/(cls.upvotes+1), cls.downvotes.desc(), cls.created_utc.desc())
elif sort == "bottom":
return objects.order_by(cls.upvotes - cls.downvotes, cls.created_utc.desc())
elif sort == "top":
else:
return objects.order_by(cls.downvotes - cls.upvotes, cls.created_utc.desc())