From 6fbd56b7573ef6775217a8712b162e027464a29c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 5 Mar 2022 04:05:19 +0200 Subject: [PATCH] golden --- files/helpers/sanitize.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index e710374e3d..51f7f60494 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -231,7 +231,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False): classes = 'emoji-md' remoji = emoji - if not edit and random() < 0.005 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden' + if not edit and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden' if remoji == 'marseyrandom': remoji = choice(marseys_const) @@ -253,7 +253,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False): if emoji.startswith("!"): emoji = emoji[1:] classes = 'emoji mirrored' - if not edit and random() < 0.005 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden' + if not edit and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden' old = emoji if emoji == 'marseyrandom': emoji = choice(marseys_const) @@ -264,7 +264,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False): if comment: marseys_used.add(emoji) else: classes = 'emoji' - if not edit and random() < 0.005 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden' + if not edit and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden' old = emoji if emoji == 'marseyrandom': emoji = choice(marseys_const) @@ -343,7 +343,7 @@ def filter_emojis_only(title, edit=False, graceful=False): if emoji.startswith("!"): emoji = emoji[1:] classes = 'emoji mirrored' - if not edit and random() < 0.005 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden' + if not edit and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden' old = emoji if emoji == 'marseyrandom': emoji = choice(marseys_const) @@ -354,7 +354,7 @@ def filter_emojis_only(title, edit=False, graceful=False): else: classes = 'emoji' - if not edit and random() < 0.005 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden' + if not edit and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden' old = emoji if emoji == 'marseyrandom': emoji = choice(marseys_const)