remotes/1693045480750635534/spooky-22
Aevann1 2021-09-22 17:53:30 +02:00
parent eb368432c1
commit 1df4d3012d
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 t != 'day' and sort in ["hot","controversial"]:
if 'rdrama' in request.host and t != 'day' and sort in ["hot","controversial"]:
cutoff = int(time.time()) - 86400
posts = posts.filter(Submission.created_utc >= cutoff)
elif t != 'all':