From eb37d4a7f48394b497c0453f433ea31a7771c928 Mon Sep 17 00:00:00 2001 From: NotoriousRebel Date: Sun, 23 Dec 2018 20:08:06 -0500 Subject: [PATCH] Added another filtering rule. --- discovery/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery/constants.py b/discovery/constants.py index d6307366..5d3a0afc 100644 --- a/discovery/constants.py +++ b/discovery/constants.py @@ -263,8 +263,8 @@ def filter(lst): lst = set(lst) # remove duplicates new_lst = [] for item in lst: - if item[0].isalpha() or item[0].isdigit(): - new_lst.append(item) + if (item[0].isalpha() or item[0].isdigit()) and not ('xxx' in item): + new_lst.append(item) return new_lst