From 3d96a9839a12649874b6d4cf9466bd3616b0a03c Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 27 Dec 2021 09:26:22 +0100 Subject: [format.python] initial formatting of the python code This patch was generated by black [1]:: make format.python [1] https://github.com/psf/black Signed-off-by: Markus Heiser --- searx/engines/nyaa.py | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'searx/engines/nyaa.py') diff --git a/searx/engines/nyaa.py b/searx/engines/nyaa.py index 4fe383efa..bdd3ea6dc 100644 --- a/searx/engines/nyaa.py +++ b/searx/engines/nyaa.py @@ -98,14 +98,18 @@ def response(resp): content = 'Category: "{category}". Downloaded {downloads} times.' content = content.format(category=category, downloads=downloads) - results.append({'url': href, - 'title': title, - 'content': content, - 'seed': seed, - 'leech': leech, - 'filesize': filesize, - 'torrentfile': torrent_link, - 'magnetlink': magnet_link, - 'template': 'torrent.html'}) + results.append( + { + 'url': href, + 'title': title, + 'content': content, + 'seed': seed, + 'leech': leech, + 'filesize': filesize, + 'torrentfile': torrent_link, + 'magnetlink': magnet_link, + 'template': 'torrent.html', + } + ) return results -- cgit v1.2.3