mirror of https://github.com/searx/searx
Fix pep8 errors of database engines
This commit is contained in:
parent
fc4bf4bf10
commit
5cb29f6e46
|
@ -28,10 +28,10 @@ def init(engine_settings):
|
|||
|
||||
global _connection
|
||||
_connection = mysql.connector.connect(
|
||||
database = database,
|
||||
user = username,
|
||||
password = password,
|
||||
host = host,
|
||||
database=database,
|
||||
user=username,
|
||||
password=password,
|
||||
host=host,
|
||||
auth_plugin=auth_plugin,
|
||||
)
|
||||
|
||||
|
@ -54,4 +54,3 @@ def _fetch_results(cur):
|
|||
results.append(result)
|
||||
|
||||
return results
|
||||
|
||||
|
|
|
@ -27,11 +27,11 @@ def init(engine_settings):
|
|||
|
||||
global _connection
|
||||
_connection = psycopg2.connect(
|
||||
database = database,
|
||||
user = username,
|
||||
password = password,
|
||||
host = host,
|
||||
port = port,
|
||||
database=database,
|
||||
user=username,
|
||||
password=password,
|
||||
host=host,
|
||||
port=port,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue