From c30f21f950a8c2976bd247ae0195e1eb2f1f6352 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 29 Apr 2020 14:46:00 -0600 Subject: [PATCH] Minor conditional fix in filter --- app/filter.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/filter.py b/app/filter.py index e057239..6bc5e81 100644 --- a/app/filter.py +++ b/app/filter.py @@ -120,9 +120,7 @@ class Filter: param_val = query_params[param][0] if param in query_params else '' new_search += '&' + param + '=' + param_val a['href'] = new_search - continue - - if 'url?q=' in href: + elif 'url?q=' in href: # Strip unneeded arguments parsed_link = urlparse.urlparse(query_link) link_args = parse_qs(parsed_link.query) @@ -146,8 +144,8 @@ class Filter: # Add no-js option if self.nojs: gen_nojs(soup, query_link, a) - - a['href'] = href + else: + a['href'] = href def gen_nojs(soup, link, sibling):