From ee2351f01dbb20d7504a1f83ccb1f70dd8c9179d Mon Sep 17 00:00:00 2001 From: DUO Labs Date: Mon, 7 Feb 2022 18:37:39 -0500 Subject: [PATCH] Fix pep8 issues (7) --- app/filter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/filter.py b/app/filter.py index 59ab8dc..4e13013 100644 --- a/app/filter.py +++ b/app/filter.py @@ -125,13 +125,14 @@ class Filter: def remove_site_blocks(self, soup) -> None: if not self.config.block: return - search_string = ' '.join(['-site:' + + search_string = ' '.join(['-site:' + _ for _ in self.config.block.split(',')]) selected = soup.body.findAll(text=re.compile(search_string)) for result in selected: result.string.replace_with( - result.string.replace(search_string, '')) + result.string.replace( + search_string, '')) def remove_ads(self) -> None: """Removes ads found in the list of search result divs