summaryrefslogtreecommitdiff
path: root/searx/engines/wikipedia.py
diff options
context:
space:
mode:
authormarc <a01200356@itesm.mx>2016-12-28 23:24:56 -0600
committermarc <a01200356@itesm.mx>2016-12-29 01:55:30 -0600
commit1175b3906f801c2ad3b6aa1f0718aedd7811dd5f (patch)
tree54ad08f8e7a4bbbb101c732efb1df872c4ceadd6 /searx/engines/wikipedia.py
parent7388067f1546f560830a25d0082c0ab9fc1cba34 (diff)
downloadsearxng-1175b3906f801c2ad3b6aa1f0718aedd7811dd5f.tar.gz
searxng-1175b3906f801c2ad3b6aa1f0718aedd7811dd5f.zip
change language list to only include languages with a minimum of engines
that support them. users can still query lesser supported through the :lang_code bang.
Diffstat (limited to 'searx/engines/wikipedia.py')
-rw-r--r--searx/engines/wikipedia.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py
index 78acd349d..3af8f1c71 100644
--- a/searx/engines/wikipedia.py
+++ b/searx/engines/wikipedia.py
@@ -132,7 +132,7 @@ def _fetch_supported_languages(resp):
english_name = td[1].xpath('./a')[0].text
articles = int(td[4].xpath('./a/b')[0].text.replace(',', ''))
# exclude languages with too few articles
- if articles >= 100000:
+ if articles >= 100:
supported_languages[code] = {"name": name, "english_name": english_name, "articles": articles}
return supported_languages