From 1e620a02e83ca3b2ef7e645fe6775d6aafb2be2d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Sep 2021 23:10:50 +0200 Subject: [PATCH] dfs --- 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 ce42765e0e..23f7d48536 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -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('*')) - if 'rdrama' in request.host and t != 'day' and sort in ["hot","controversial"]: + if 'rdrama' in request.host and sort == "hot": cutoff = int(time.time()) - 86400 posts = posts.filter(Submission.created_utc >= cutoff) elif t != 'all':