From 5cb29f6e460f2cc5450ef3ce6256e348e3be87e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Thu, 29 Apr 2021 21:50:25 +0200 Subject: [PATCH] Fix pep8 errors of database engines --- searx/engines/mysql_server.py | 9 ++++----- searx/engines/postgresql.py | 10 +++++----- 2 files changed, 9 insertions(+), 10 deletions(-) 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, )