on master help sign in
Fix pep8 errors of database engines
commit5cb29f6e460f2cc5450ef3ce6256e348e3be87e1 authorNoémi Ványi <sitbackandwait@gmail.com> dateThu 29 Apr 2021, 21:50 (5 years ago) parentfc4bf4b
2 files changed+9−10
searx/engines/mysql_server.py+4−5 searx/engines/postgresql.py+5−5
searx/engines/mysql_server.py+4−5
@@ -28,10 +28,10 @@ def init(engine_settings):
2828
2929 global _connection
3030 _connection = mysql.connector.connect(
31− database = database,
32− user = username,
33− password = password,
34− host = host,
31+ database=database,
32+ user=username,
33+ password=password,
34+ host=host,
3535 auth_plugin=auth_plugin,
3636 )
3737
@@ -54,4 +54,3 @@ def _fetch_results(cur):
5454 results.append(result)
5555
5656 return results
57−
searx/engines/postgresql.py+5−5
@@ -27,11 +27,11 @@ def init(engine_settings):
2727
2828 global _connection
2929 _connection = psycopg2.connect(
30− database = database,
31− user = username,
32− password = password,
33− host = host,
34− port = port,
30+ database=database,
31+ user=username,
32+ password=password,
33+ host=host,
34+ port=port,
3535 )
3636
3737