Update URL call.

master
junos 2023-05-16 16:17:53 +02:00
parent 26c7d22b83
commit 0f8f0b0fb6
1 changed files with 2 additions and 3 deletions

View File

@ -1,8 +1,7 @@
import os import os
import sqlalchemy.engine.url
from dotenv import load_dotenv from dotenv import load_dotenv
from sqlalchemy import create_engine from sqlalchemy import URL, create_engine
from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import sessionmaker
load_dotenv() load_dotenv()
@ -11,7 +10,7 @@ testing: bool = False
db_password = os.getenv("DB_PASSWORD") db_password = os.getenv("DB_PASSWORD")
db_uri = sqlalchemy.engine.url.URL( db_uri = URL.create(
drivername="postgresql+psycopg2", drivername="postgresql+psycopg2",
username="staw_db", username="staw_db",
password=db_password, password=db_password,