From 701503ef108eefb768f0ca61761e24a48b5f1f08 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 17 Jan 2022 22:44:49 +0200 Subject: [PATCH] vcxvcx --- 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 369290f8c..d79f4f952 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -247,7 +247,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words=' if not (v and v.shadowbanned): posts = posts.join(User, User.id == Submission.author_id).filter(User.shadowbanned == None) - if sort == "hot" or v.id == Q_ID: + if sort == "hot": ti = int(time.time()) + 3600 posts = posts.order_by(-1000000*(Submission.realupvotes + 1 + Submission.comment_count/5)/(func.power(((ti - Submission.created_utc)/1000), 1.23))) elif sort == "new":