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
|
global _connection
|
||||||
_connection = mysql.connector.connect(
|
_connection = mysql.connector.connect(
|
||||||
database = database,
|
database=database,
|
||||||
user = username,
|
user=username,
|
||||||
password = password,
|
password=password,
|
||||||
host = host,
|
host=host,
|
||||||
auth_plugin=auth_plugin,
|
auth_plugin=auth_plugin,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -54,4 +54,3 @@ def _fetch_results(cur):
|
||||||
results.append(result)
|
results.append(result)
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
|
@ -27,11 +27,11 @@ def init(engine_settings):
|
||||||
|
|
||||||
global _connection
|
global _connection
|
||||||
_connection = psycopg2.connect(
|
_connection = psycopg2.connect(
|
||||||
database = database,
|
database=database,
|
||||||
user = username,
|
user=username,
|
||||||
password = password,
|
password=password,
|
||||||
host = host,
|
host=host,
|
||||||
port = port,
|
port=port,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue