From 1292fcbf36bfcf609d46c2841421f4680a6395d8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 26 Aug 2022 00:23:53 +0200 Subject: [PATCH] write code for WPD social holes --- files/routes/front.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index a06a3c90a..70e40918f 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -123,13 +123,10 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false" if not (v and v.shadowbanned): posts = posts.join(Submission.author).filter(User.shadowbanned == None) - if SITE == 'rdrama.net': num = 5 - else: num = 0.5 - if sort == 'hot': ti = int(time.time()) + 3600 if SITE_NAME == 'rDrama': - posts = posts.order_by(-1000000*(Submission.realupvotes + 1 + Submission.comment_count/num + func.least(50, (func.length(Submission.body_html)-func.length(func.replace(Submission.body_html,' size)