mirror of
https://github.com/searxng/searxng.git
synced 2025-07-16 09:49:21 +02:00
[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
707d6270c8
commit
8205f170ff
155 changed files with 166 additions and 258 deletions
|
@ -54,12 +54,12 @@ def obtain_token():
|
|||
token_response = http_get('https://www.wolframalpha.com/input/api/v1/code?ts=9999999999999999999', timeout=2.0)
|
||||
token['value'] = loads(token_response.text)['code']
|
||||
token['last_updated'] = update_time
|
||||
except:
|
||||
except: # pylint: disable=bare-except
|
||||
pass
|
||||
return token
|
||||
|
||||
|
||||
def init(engine_settings=None):
|
||||
def init(engine_settings=None): # pylint: disable=unused-argument
|
||||
obtain_token()
|
||||
|
||||
|
||||
|
@ -83,7 +83,7 @@ def response(resp):
|
|||
if not resp_json['queryresult']['success']:
|
||||
return []
|
||||
|
||||
# TODO handle resp_json['queryresult']['assumptions']
|
||||
# handle resp_json['queryresult']['assumptions']?
|
||||
result_chunks = []
|
||||
infobox_title = ""
|
||||
result_content = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue