From d567dddaa2c8cf86e50547aee3d6e69673a08ffd Mon Sep 17 00:00:00 2001 From: Adriene Hutchins Date: Tue, 10 Nov 2020 18:39:15 -0500 Subject: [PATCH] Fix the biggest bug of them all in 3 lines --- extensions/search.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/search.py b/extensions/search.py index 04772b5..e85f3ef 100644 --- a/extensions/search.py +++ b/extensions/search.py @@ -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"