summaryrefslogtreecommitdiff
path: root/searx/engines/github.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/github.py')
-rw-r--r--searx/engines/github.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/github.py b/searx/engines/github.py
index 85540056c..b4baea6e8 100644
--- a/searx/engines/github.py
+++ b/searx/engines/github.py
@@ -4,11 +4,11 @@ from cgi import escape
categories = ['it']
-search_url = 'https://api.github.com/search/repositories?sort=stars&order=desc&'
+search_url = 'https://api.github.com/search/repositories?sort=stars&order=desc&{query}'
def request(query, params):
global search_url
- params['url'] = search_url + urlencode({'q': query})
+ params['url'] = search_url.format(query=urlencode({'q': query}))
params['headers']['Accept'] = 'application/vnd.github.preview.text-match+json'
return params