From 90fba965ed3ef24759ba6088cc0ca73a1c7c3228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Mielcarek?= Date: Wed, 15 May 2024 20:27:42 +0200 Subject: [PATCH] Update db config --- database/db-creation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/db-creation.py b/database/db-creation.py index 700024f..e431da2 100644 --- a/database/db-creation.py +++ b/database/db-creation.py @@ -7,7 +7,6 @@ env_password = os.getenv('POSTGRES_PASSWORD') # Establish connection to the PostgreSQL database conn = psycopg2.connect( - dbname="postgres", user=env_user, password=env_password, host="felixmielcarek-bigbrotherdb" @@ -81,4 +80,5 @@ cur.execute(create_schema_query) cur.execute(create_table_query) # Close the cursor and the connection +cur.close() conn.close()