diff --git a/app/filter.py b/app/filter.py index 45b883a..d628704 100644 --- a/app/filter.py +++ b/app/filter.py @@ -14,6 +14,7 @@ import os minimal_mode_sections = ['Top stories', 'Images', 'People also ask'] + def extract_q(q_str: str, href: str) -> str: """Extracts the 'q' element from a result link. This is typically either the link to a result's website, or a string. @@ -171,7 +172,7 @@ class Filter: result_children = pull_child_divs(result) if minimal_mode: if any(f">{x}