From 1911dde16e2c2f3a9d709141e1ad1bdae1e9fd53 Mon Sep 17 00:00:00 2001 From: Z <22781620+invis-z@users.noreply.github.com> Date: Wed, 27 Apr 2022 15:32:53 +0800 Subject: [PATCH] Fix style --- app/filter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/filter.py b/app/filter.py index d633fe7..598c259 100644 --- a/app/filter.py +++ b/app/filter.py @@ -466,7 +466,8 @@ class Filter: if href.startswith(MAPS_URL): # Maps links don't work if a site filter is applied link['href'] = MAPS_URL + "?q=" + clean_query(q) - elif href.startswith('/?') or href.startswith('/search?') or href.startswith('/imgres?'): + elif href.startswith('/?') or href.startswith('/search?') or \ + href.startswith('/imgres?'): # make sure that tags can be clicked as relative URLs link['href'] = href[1:] elif href.startswith('/intl/'):