fsdfs
This commit is contained in:
parent
aea719f074
commit
1cdd08b04e
1 changed files with 1 additions and 1 deletions
|
@ -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('*'))
|
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
|
cutoff = int(time.time()) - 86400
|
||||||
posts = posts.filter(Submission.created_utc >= cutoff)
|
posts = posts.filter(Submission.created_utc >= cutoff)
|
||||||
elif t != 'all':
|
elif t != 'all':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue