diff --git a/searx/engines/mysql_server.py b/searx/engines/mysql_server.py index 910ee9da..e65217bb 100644 --- a/searx/engines/mysql_server.py +++ b/searx/engines/mysql_server.py @@ -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 - diff --git a/searx/engines/postgresql.py b/searx/engines/postgresql.py index c6fa7221..e49a01d2 100644 --- a/searx/engines/postgresql.py +++ b/searx/engines/postgresql.py @@ -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, )