remotes/1693045480750635534/spooky-22
Aevann1 2021-09-26 13:33:12 +02:00
parent abcfcc7456
commit 18774107ab
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,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
posts = posts.filter(Submission.created_utc >= cutoff)
if cutoff: posts = posts.filter(Submission.created_utc >= cutoff)
posts = posts.filter_by(is_banned=False, stickied=None, private=False, deleted_utc = 0)