diff --git a/database/db-creation.py b/database/db-creation.py index 1481cf1..b2c7076 100644 --- a/database/db-creation.py +++ b/database/db-creation.py @@ -2,12 +2,7 @@ import psycopg2 import os # Establish connection to the PostgreSQL database -conn = psycopg2.connect( - dbname=os.getenv('POSTGRES_DATABASE'), - user='postgres', - password=os.getenv('POSTGRES_ROOT_PASSWORD'), - host="felixmielcarek-bigbrotherdb" -) +conn = psycopg2.connect(dbname=os.getenv('POSTGRES_DATABASE'), user=os.getenv('POSTGRES_USER'), password=os.getenv('POSTGRES_PASSWORD'), host="felixmielcarek-bigbrotherdb") # Create a cursor object to execute SQL queries cur = conn.cursor()