Fix pep8 errors of database engines

This commit is contained in:
Noémi Ványi 2021-04-29 21:50:25 +02:00
parent fc4bf4bf10
commit 5cb29f6e46
2 changed files with 9 additions and 10 deletions

View File

@ -28,10 +28,10 @@ def init(engine_settings):
global _connection global _connection
_connection = mysql.connector.connect( _connection = mysql.connector.connect(
database = database, database=database,
user = username, user=username,
password = password, password=password,
host = host, host=host,
auth_plugin=auth_plugin, auth_plugin=auth_plugin,
) )
@ -54,4 +54,3 @@ def _fetch_results(cur):
results.append(result) results.append(result)
return results return results

View File

@ -27,11 +27,11 @@ def init(engine_settings):
global _connection global _connection
_connection = psycopg2.connect( _connection = psycopg2.connect(
database = database, database=database,
user = username, user=username,
password = password, password=password,
host = host, host=host,
port = port, port=port,
) )