mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
Fix pep8 errors
This commit is contained in:
parent
ff2eac9f6b
commit
d24c58cf4e
@ -35,7 +35,7 @@ def locale_to_lang_code(locale):
|
|||||||
|
|
||||||
# wikis for some languages were moved off from the main site, we need to make
|
# wikis for some languages were moved off from the main site, we need to make
|
||||||
# requests to correct URLs to be able to get results in those languages
|
# requests to correct URLs to be able to get results in those languages
|
||||||
lang_urls= {
|
lang_urls = {
|
||||||
'en': {
|
'en': {
|
||||||
'base': 'https://wiki.gentoo.org',
|
'base': 'https://wiki.gentoo.org',
|
||||||
'search': '/index.php?title=Special:Search&offset={offset}&{query}'
|
'search': '/index.php?title=Special:Search&offset={offset}&{query}'
|
||||||
@ -100,7 +100,8 @@ def request(query, params):
|
|||||||
urls = get_lang_urls(language)
|
urls = get_lang_urls(language)
|
||||||
search_url = urls['base'] + urls['search']
|
search_url = urls['base'] + urls['search']
|
||||||
|
|
||||||
params['url'] = search_url.format(query=query, offset=offset, language=language)
|
params['url'] = search_url.format(query=query, offset=offset,
|
||||||
|
language=language)
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user