Update app/database.py

This commit is contained in:
Cameron 2025-12-10 03:16:34 +00:00
parent 570ce55439
commit 619083bed5

View file

@ -5,7 +5,10 @@ from dotenv import load_dotenv
load_dotenv() load_dotenv()
DATABASE_URL = "postgres://admin:33Pippin!!;@voo8ccgwss0ks0000occko4s:5432/postgres" # URL-encode the password
password = quote_plus("33Pippin!!;")
DATABASE_URL = f"postgresql+psycopg2://admin:{password}@voo8ccgwss0ks0000occko4s:5432/postgres"
engine = create_engine(DATABASE_URL) engine = create_engine(DATABASE_URL)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)