master
Aevann1 2021-09-23 23:10:50 +02:00
parent 01074da6d7
commit 1e620a02e8
1 changed files with 1 additions and 1 deletions

View File

@ -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':