Fix the biggest bug of them all in 3 lines

This commit is contained in:
Adriene Hutchins 2020-11-10 18:39:15 -05:00
parent ae36bd57ac
commit d567dddaa2
1 changed files with 3 additions and 1 deletions

View File

@ -61,10 +61,12 @@ class Search(commands.Cog, name="Basic"):
# Search URL Building
# api.qwant.com/api/search/web?count=5&q=test&safesearch=2&...
# XXX Find out why quote_plus wasn't working
query_with_plus = query.replace(' ', '+')
search_url = (
f"{base}/search/{category}"
f"?count={count}"
f"&q={query}"
f"&q={query_with_plus}"
f"&safesearch={safesearch}"
"&t=web"
"&locale=en_US"