From 457e4a42427cf3a410480039d0bbe3dac094772e Mon Sep 17 00:00:00 2001 From: NotoriousRebel Date: Tue, 1 Jan 2019 21:38:59 -0500 Subject: [PATCH] Updated filter to remove 2Fs. --- discovery/constants.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/discovery/constants.py b/discovery/constants.py index 7ca28e30..6f9c75a9 100644 --- a/discovery/constants.py +++ b/discovery/constants.py @@ -262,9 +262,15 @@ def filter(lst): lst = set(lst) # remove duplicates new_lst = [] for item in lst: + item = str(item) if (item[0].isalpha() or item[0].isdigit()) and ('xxx' not in item) and ('..' not in item): + print('item: ', item) if '252f' in item: item = item.replace('252f', '') + if '2F' in item: + item = item.replace('2F', '') + if '2f' in item: + item = item.replace('2f', '') new_lst.append(item.lower()) return new_lst