summaryrefslogtreecommitdiff
path: root/searx/engines/flickr-noapi.py
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2014-12-29 21:31:04 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2014-12-29 21:31:04 +0100
commit5d977056f7aa216eae09a22c3baaff73546f6ff1 (patch)
treeffd08f6bc1d3268ec6ce8031cbdec7987dfd3763 /searx/engines/flickr-noapi.py
parent576fdef440e835592f9f5c8dc25398e343687c7a (diff)
Flake8 and Twitter corrections
Lots of Flake8 corrections Maybe we should change the rule to allow lines of 120 chars. It seems more usable. Big twitter correction : now it outputs the words in right order...
Diffstat (limited to 'searx/engines/flickr-noapi.py')
-rw-r--r--searx/engines/flickr-noapi.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/searx/engines/flickr-noapi.py b/searx/engines/flickr-noapi.py
index 522503b53..f90903647 100644
--- a/searx/engines/flickr-noapi.py
+++ b/searx/engines/flickr-noapi.py
@@ -53,7 +53,8 @@ def response(resp):
for photo in photos:
- # In paged configuration, the first pages' photos are represented by a None object
+ # In paged configuration, the first pages' photos
+ # are represented by a None object
if photo is None:
continue
@@ -74,10 +75,15 @@ def response(resp):
title = photo['title']
- content = '<span class="photo-author">' + photo['owner']['username'] + '</span><br />'
+ content = '<span class="photo-author">' +\
+ photo['owner']['username'] +\
+ '</span><br />'
if 'description' in photo:
- content = content + '<span class="description">' + photo['description'] + '</span>'
+ content = content +\
+ '<span class="description">' +\
+ photo['description'] +\
+ '</span>'
# append result
results.append({'url': url,