From 18774107ab5be0605fb522514eda62db8c158d30 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 26 Sep 2021 13:33:12 +0200 Subject: [PATCH] dfsfs --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 97ec1487c..6f8f34c8f 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -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)