mirror of
https://github.com/searxng/searxng.git
synced 2025-08-01 17:42:21 +02:00
Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes
This commit is contained in:
parent
7888377743
commit
c225db45c8
20 changed files with 48 additions and 48 deletions
|
@ -23,7 +23,7 @@ def get_bang_url(search_query):
|
|||
"""
|
||||
|
||||
if search_query.external_bang:
|
||||
query = search_query.query.decode(errors='ignore')
|
||||
query = search_query.query
|
||||
bang = _get_bang(search_query.external_bang)
|
||||
|
||||
if bang and query:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue