From 2af50c25883d7e4d519be518585982ceabea22a4 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 18 Dec 2021 17:59:47 +0100 Subject: [PATCH] [pylint] Reddit engine Add Reddit engine to pylint process Signed-off-by: Markus Heiser --- searx/engines/reddit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/searx/engines/reddit.py b/searx/engines/reddit.py index e84e77220..ca6cb28a8 100644 --- a/searx/engines/reddit.py +++ b/searx/engines/reddit.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -""" - Reddit +# lint: pylint +"""Reddit """ import json @@ -26,16 +26,16 @@ base_url = 'https://www.reddit.com/' search_url = base_url + 'search.json?{query}' -# do search-request def request(query, params): + query = urlencode({'q': query, 'limit': page_size}) params['url'] = search_url.format(query=query) return params -# get response from search-request def response(resp): + img_results = [] text_results = []