format database.py using black

This commit is contained in:
jomo 2024-02-01 00:01:22 +01:00
parent 1bf4eb801f
commit f3658a76ff

View file

@ -5,9 +5,7 @@ from sqlalchemy.orm import sessionmaker
SQLALCHEMY_DATABASE_URL = "sqlite:///./inventory.sqlite3" SQLALCHEMY_DATABASE_URL = "sqlite:///./inventory.sqlite3"
engine = create_engine( engine = create_engine(
SQLALCHEMY_DATABASE_URL, SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}, echo=True
connect_args = {"check_same_thread": False},
echo=True
) )
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)