From d2c947863e2aee18aa7fb90addcb5c33d5b65a89 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 28 Aug 2021 13:32:52 +0200 Subject: [PATCH] gfgf --- files/routes/front.py | 2 +- files/routes/posts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index fdf29a88e..049e76f2d 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -160,7 +160,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words=' posts.remove(post) break - if random.random() < 0.02: + if random.random() < 0.004: for post in posts: if post.author and post.author.shadowbanned: rand = random.randint(500,1400) diff --git a/files/routes/posts.py b/files/routes/posts.py index 379c73ded..c21cb3496 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -163,7 +163,7 @@ def post_id(pid, anything=None, v=None): else: abort(422) - if random.random() < 0.1: + if random.random() < 0.02: for comment in comments: if comment.author and comment.author.shadowbanned: rand = random.randint(500,1400)