forked from MarseyWorld/MarseyWorld
dfs
parent
01074da6d7
commit
1e620a02e8
|
@ -114,7 +114,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
|||
|
||||
posts = g.db.query(Submission).options(lazyload('*'))
|
||||
|
||||
if 'rdrama' in request.host and t != 'day' and sort in ["hot","controversial"]:
|
||||
if 'rdrama' in request.host and sort == "hot":
|
||||
cutoff = int(time.time()) - 86400
|
||||
posts = posts.filter(Submission.created_utc >= cutoff)
|
||||
elif t != 'all':
|
||||
|
|
Loading…
Reference in New Issue