summaryrefslogtreecommitdiff
path: root/searx/engines/mediawiki.py
diff options
context:
space:
mode:
authorpw3t <romain@berthor.fr>2014-01-16 21:58:18 +0100
committerpw3t <romain@berthor.fr>2014-01-17 20:47:17 +0100
commit380b440a55ba3b8ec1430843226fa6b4b0dfe289 (patch)
treef3340cee144d5e15e45f30faff01851f25620cee /searx/engines/mediawiki.py
parenta62b94e21c4c521430fb3b37f4241adb1faee63c (diff)
downloadsearxng-380b440a55ba3b8ec1430843226fa6b4b0dfe289.tar.gz
searxng-380b440a55ba3b8ec1430843226fa6b4b0dfe289.zip
[fix] replace the png icons by ico's, minor chnage in the html
Diffstat (limited to 'searx/engines/mediawiki.py')
-rw-r--r--searx/engines/mediawiki.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/searx/engines/mediawiki.py b/searx/engines/mediawiki.py
index 19b4406b5..00ad0f106 100644
--- a/searx/engines/mediawiki.py
+++ b/searx/engines/mediawiki.py
@@ -18,9 +18,3 @@ def response(resp):
return [{'url': url + 'wiki/' + quote(result['title'].replace(' ', '_').encode('utf-8')),
'title': result['title']} for result in res[:int(number_of_results)]]
- if not len(res):
- return results
- for result in res[:int(number_of_results)]:
- results.append({'url': url + 'wiki/' + quote(result['title'].replace(' ', '_').encode('utf-8')), 'title': result['title'], 'favicon':'wikipedia'})
- return results
-