on master help sign in
Fix pep8 errors of database engines
5cb29f6Noémi Ványi
searx/engines/mysql_server.py+4−5
@@ -28,10 +28,10 @@ def init(engine_settings):
28
28
29 global _connection
29 global _connection
30 _connection = mysql.connector.connect(
30 _connection = mysql.connector.connect(
31− database = database,
31+ database=database,
32− user = username,
32+ user=username,
33− password = password,
33+ password=password,
34− host = host,
34+ host=host,
35 auth_plugin=auth_plugin,
35 auth_plugin=auth_plugin,
36 )
36 )
37
37
@@ -54,4 +54,3 @@ def _fetch_results(cur):
54 results.append(result)
54 results.append(result)
55
55
56 return results
56 return results
57−
searx/engines/postgresql.py+5−5
@@ -27,11 +27,11 @@ def init(engine_settings):
27
27
28 global _connection
28 global _connection
29 _connection = psycopg2.connect(
29 _connection = psycopg2.connect(
30− database = database,
30+ database=database,
31− user = username,
31+ user=username,
32− password = password,
32+ password=password,
33− host = host,
33+ host=host,
34− port = port,
34+ port=port,
35 )
35 )
36
36
37
37