Skip to content

Commit

Permalink
Adjusted files for isort & autopep
Browse files Browse the repository at this point in the history
  • Loading branch information
creyD authored and github-actions[bot] committed Jan 2, 2025
1 parent d75fede commit 32bf089
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions creyPY/fastapi/db/async_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

from .common import SQLALCHEMY_DATABASE_URL, name

async_engine = create_async_engine(SQLALCHEMY_DATABASE_URL + name, pool_pre_ping=True,
connect_args={
'sslmode': 'require'
})
async_engine = create_async_engine(
SQLALCHEMY_DATABASE_URL + name, pool_pre_ping=True, connect_args={"sslmode": "require"}
)

AsyncSessionLocal = sessionmaker(
bind=async_engine,
Expand Down
7 changes: 3 additions & 4 deletions creyPY/fastapi/db/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@

from .common import SQLALCHEMY_DATABASE_URL, name

engine = create_engine(SQLALCHEMY_DATABASE_URL + name, pool_pre_ping=True,
connect_args={
'sslmode': 'require'
})
engine = create_engine(
SQLALCHEMY_DATABASE_URL + name, pool_pre_ping=True, connect_args={"sslmode": "require"}
)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)


Expand Down

0 comments on commit 32bf089

Please sign in to comment.