From 1212804fbf416e0a6693faa8fb54f5bde58fe459 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 11 Jun 2022 15:19:39 +0200 Subject: [PATCH] exclude pings from link counter --- files/routes/front.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 7337302e6..dca383623 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -299,7 +299,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false" if sort == "hot": ti = int(time.time()) + 3600 - posts = posts.order_by(-1000000*(Submission.realupvotes + 1 + Submission.comment_count/num + func.length(Submission.body_html)-func.length(func.replace(Submission.body_html,'','')))/(func.power(((ti - Submission.created_utc)/1000), 1.23)), Submission.created_utc.desc()) + posts = posts.order_by(-1000000*(Submission.realupvotes + 1 + Submission.comment_count/num + (func.length(Submission.body_html)-func.length(func.replace(Submission.body_html,' 1).order_by(Submission.bump_utc.desc(), Submission.created_utc.desc()) elif sort == "new": @@ -544,4 +544,4 @@ def transfers(v): comments = comments.offset(25 * (page - 1)).limit(26).all() next_exists = len(comments) > 25 comments = comments[:25] - return render_template("transfers.html", v=v, page=page, comments=comments, standalone=True, next_exists=next_exists) \ No newline at end of file + return render_template("transfers.html", v=v, page=page, comments=comments, standalone=True, next_exists=next_exists)