forked from MarseyWorld/MarseyWorld
fix "52yr ago" bug
parent
78fffccef4
commit
be055d1d82
|
@ -47,7 +47,7 @@ def sort_objects(sort, objects, cls, include_shadowbanned=False):
|
||||||
return objects.order_by(cls.downvotes - cls.upvotes, cls.created_utc.desc())
|
return objects.order_by(cls.downvotes - cls.upvotes, cls.created_utc.desc())
|
||||||
|
|
||||||
def make_age_string(compare:Optional[int]) -> str:
|
def make_age_string(compare:Optional[int]) -> str:
|
||||||
if not compare: return "never"
|
if not compare or compare < 1577865600: return ""
|
||||||
age = int(time.time()) - compare
|
age = int(time.time()) - compare
|
||||||
|
|
||||||
if age < 60:
|
if age < 60:
|
||||||
|
|
Loading…
Reference in New Issue