refactor: improve variable naming and add comments for clarity in models and services
Test / test (push) Successful in 15s
Test / test (push) Successful in 15s
This commit is contained in:
@@ -30,8 +30,8 @@ async def session() -> AsyncGenerator[AsyncSession, None]:
|
||||
)
|
||||
async with engine.begin() as conn:
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
Session = async_sessionmaker(engine, expire_on_commit=False)
|
||||
async with Session() as session:
|
||||
session_factory = async_sessionmaker(engine, expire_on_commit=False)
|
||||
async with session_factory() as session:
|
||||
yield session
|
||||
await engine.dispose()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user