fds
This commit is contained in:
parent
cf6fa6a4e6
commit
0e492661d6
1 changed files with 1 additions and 2 deletions
|
@ -172,10 +172,9 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
|||
cutoff = now - 2592000
|
||||
elif t == 'year':
|
||||
cutoff = now - 31536000
|
||||
print(posts.all())
|
||||
posts = posts.filter(Submission.created_utc >= cutoff)
|
||||
|
||||
print(posts.all())
|
||||
|
||||
posts = posts.filter_by(is_banned=False, stickied=None, private=False, deleted_utc = 0)
|
||||
|
||||
if v:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue