From 5fb6bd86f989bb92b78624fabec85b44048ea592 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 13 Jul 2022 19:32:31 +0200 Subject: [PATCH] remove "warm" sorting --- files/routes/front.py | 2 +- files/routes/settings.py | 2 +- files/templates/home.html | 2 -- files/templates/settings_filters.html | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 34f2f506d..134bad628 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -120,7 +120,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false" if request.host == 'rdrama.net': num = 5 else: num = 0.5 - if sort in ("hot","warm"): + if sort == 'hot': ti = int(time.time()) + 3600 if SITE == 'watchpeopledie.co': posts = posts.order_by(-1000000*(Submission.upvotes - Submission.downvotes + 1 + Submission.comment_count/num)/(func.power(((ti - Submission.created_utc)/1000), 1.23)), Submission.created_utc.desc()) diff --git a/files/routes/settings.py b/files/routes/settings.py index 62d0ff4d2..2be1dc363 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -237,7 +237,7 @@ def settings_profile_post(v): defaultsorting = request.values.get("defaultsorting") if defaultsorting: - if defaultsorting in {"hot", "warm", "bump", "new", "old", "comments", "controversial", "top", "bottom"}: + if defaultsorting in {"hot", "bump", "new", "old", "comments", "controversial", "top", "bottom"}: v.defaultsorting = defaultsorting updated = True else: abort(400) diff --git a/files/templates/home.html b/files/templates/home.html index 0030d4f42..a83d19cd4 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -78,7 +78,6 @@