Skip to content

Commit

Permalink
Fix: keep_blank_values = True to handle blank q input (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-alkadri authored Aug 21, 2023
1 parent a40b983 commit 4a00896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def extract_q(q_str: str, href: str) -> str:
Returns:
str: The 'q' element of the link, or an empty string
"""
return parse_qs(q_str)['q'][0] if ('&q=' in href or '?q=' in href) else ''
return parse_qs(q_str, keep_blank_values=True)['q'][0] if ('&q=' in href or '?q=' in href) else ''


def build_map_url(href: str) -> str:
Expand Down

0 comments on commit 4a00896

Please sign in to comment.