From e49e43bb08332f10752aea3570102cf0e0098334 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 5 Feb 2020 15:22:20 +0000 Subject: [PATCH] String contains --- filters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filters.py b/filters.py index a8f45b08..bb035293 100644 --- a/filters.py +++ b/filters.py @@ -41,9 +41,9 @@ def removeFilter(baseDir: str,nickname: str,domain: str, \ def isTwitterPost(content: str) -> bool: """Returns true if the given post content is a retweet or twitter crosspost """ - if content.contains('/twitter.com') or content.contains('@twitter.com'): + if '/twitter.com' in content or '@twitter.com' in content: return True - elif content.contains('RT:'): + elif 'RT:' in content: return True return False