fds]
parent
64da024511
commit
a46719ce76
|
@ -172,6 +172,7 @@ 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(cutoff)
|
||||
print(posts.all())
|
||||
posts = posts.filter(Submission.created_utc >= cutoff)
|
||||
|
||||
|
|
Loading…
Reference in New Issue