mirror of
https://github.com/searx/searx
synced 2025-08-30 22:16:19 +00:00
Fix pep8 errors of database engines
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user