From b5aefda1244a8e1775b3a6adb3ba7ec424ece791 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 19 Nov 2022 14:30:04 +0200 Subject: [PATCH] sneed --- files/helpers/const.py | 6 +++--- files/helpers/regex.py | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 3c9bc4486..17d5a59de 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -148,8 +148,8 @@ if SITE_NAME == 'rDrama': PROFANITIES = { 'motherfucker': 'motherlover', - 'fuck': ['frick', 'fudge', 'freak'], - ' ass ': [' butt ', ' backside ', ' bum '], + 'fuck': 'frick', + ' ass ': ' butt ', 'shitting': 'pooping', 'lmao': 'lmbo', 'damn': 'darn', @@ -1680,4 +1680,4 @@ if SITE_NAME == 'rDrama': IMAGE_FORMATS = ['png','gif','jpg','jpeg','webp'] VIDEO_FORMATS = ['mp4','webm','mov','avi','mkv','flv','m4v','3gp'] -AUDIO_FORMATS = ['mp3','wav','ogg','aac','m4a','flac'] \ No newline at end of file +AUDIO_FORMATS = ['mp3','wav','ogg','aac','m4a','flac'] diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 32dfb5778..fc3c2a733 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -126,8 +126,6 @@ def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str], return match_str else: repl = replace_with[match_str.lower()] - if not isinstance(repl, str): - repl = random.choice(repl) return repl if not upper or "