diff --git a/files/helpers/sorting_and_time.py b/files/helpers/sorting_and_time.py index 32f5b3e7a..7998c4e04 100644 --- a/files/helpers/sorting_and_time.py +++ b/files/helpers/sorting_and_time.py @@ -28,10 +28,10 @@ def apply_time_filter(t, objects, cls): def sort_objects(sort, objects, cls): - if not (SITE == 'watchpeopledie.tv' and g.v and g.v.id == GTIX_ID): - objects = objects.order_by(cls.is_banned, cls.deleted_utc) - if sort == 'hot': + if not (SITE == 'watchpeopledie.tv' and g.v and g.v.id == GTIX_ID): + objects = objects.order_by(cls.is_banned, cls.deleted_utc) + ti = int(time.time()) + 3600 metric = cls.realupvotes + 1 if cls.__name__ == "Post": metric += cls.comment_count/5