forked from rDrama/rDrama
pin deleted and removed objects to the bottom to prevent bloat
parent
b06fc47a02
commit
98221cbd57
|
@ -27,6 +27,8 @@ def apply_time_filter(t, objects, cls):
|
||||||
|
|
||||||
|
|
||||||
def sort_objects(sort, objects, cls):
|
def sort_objects(sort, objects, cls):
|
||||||
|
objects = objects.order_by(cls.is_banned, cls.deleted_utc)
|
||||||
|
|
||||||
if sort == 'hot':
|
if sort == 'hot':
|
||||||
ti = int(time.time()) + 3600
|
ti = int(time.time()) + 3600
|
||||||
metric = cls.realupvotes
|
metric = cls.realupvotes
|
||||||
|
|
Loading…
Reference in New Issue