summaryrefslogtreecommitdiff
path: root/searx/engines/yacy.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/yacy.py')
-rw-r--r--searx/engines/yacy.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/engines/yacy.py b/searx/engines/yacy.py
index a4a41ac3b..efdf846ac 100644
--- a/searx/engines/yacy.py
+++ b/searx/engines/yacy.py
@@ -13,7 +13,7 @@ def request(query, params):
def response(resp):
raw_search_results = loads(resp.text)
- if not len(raw_search_results):
+ if not raw_search_results:
return []
search_results = raw_search_results.get('channels', {})[0].get('items', [])
@@ -26,10 +26,10 @@ def response(resp):
tmp_result['url'] = result['link']
tmp_result['content'] = ''
- if len(result['description']):
+ if result['description']:
tmp_result['content'] += result['description'] + "<br/>"
- if len(result['pubDate']):
+ if result['pubDate']:
tmp_result['content'] += result['pubDate'] + "<br/>"
if result['size'] != '-1':