forked from zaclys/searxng
Add missing blank lines after class or function definition.
This commit is contained in:
parent
27f4373124
commit
7e16c9d360
|
@ -34,6 +34,7 @@ def locale_to_lang_code(locale):
|
||||||
locale = locale.split('_')[0]
|
locale = locale.split('_')[0]
|
||||||
return locale
|
return 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 = {
|
||||||
|
@ -70,6 +71,7 @@ def get_lang_urls(language):
|
||||||
return lang_urls[language]
|
return lang_urls[language]
|
||||||
return lang_urls['all']
|
return lang_urls['all']
|
||||||
|
|
||||||
|
|
||||||
# Language names to build search requests for
|
# Language names to build search requests for
|
||||||
# those languages which are hosted on the main site.
|
# those languages which are hosted on the main site.
|
||||||
main_langs = {
|
main_langs = {
|
||||||
|
|
|
@ -57,6 +57,7 @@ def get_client_id():
|
||||||
logger.warning("Unable to fetch guest client_id from SoundCloud, check parser!")
|
logger.warning("Unable to fetch guest client_id from SoundCloud, check parser!")
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
# api-key
|
# api-key
|
||||||
guest_client_id = get_client_id()
|
guest_client_id = get_client_id()
|
||||||
|
|
||||||
|
|
|
@ -142,6 +142,7 @@ def wd_query(query, offset=0):
|
||||||
qlist.append(r.get('title', ''))
|
qlist.append(r.get('title', ''))
|
||||||
fetch_data_batch(qlist)
|
fetch_data_batch(qlist)
|
||||||
|
|
||||||
|
|
||||||
# fetch #
|
# fetch #
|
||||||
for q in wmflabs_queries:
|
for q in wmflabs_queries:
|
||||||
wdq_query(q)
|
wdq_query(q)
|
||||||
|
|
Loading…
Reference in New Issue