fixing DQ issues
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
# app/core/lifespan.py
|
||||
"""Summary description ....
|
||||
|
||||
This module provides classes and functions for:
|
||||
- ....
|
||||
- ....
|
||||
- ....
|
||||
"""
|
||||
|
||||
import logging
|
||||
from contextlib import asynccontextmanager
|
||||
|
||||
@@ -16,7 +25,7 @@ auth_manager = AuthManager()
|
||||
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
"""Application lifespan events"""
|
||||
"""Application lifespan events."""
|
||||
# Startup
|
||||
app_logger = setup_logging() # Configure logging first
|
||||
app_logger.info("Starting up ecommerce API")
|
||||
@@ -43,7 +52,7 @@ async def lifespan(app: FastAPI):
|
||||
|
||||
|
||||
def create_indexes():
|
||||
"""Create database indexes"""
|
||||
"""Create database indexes."""
|
||||
with engine.connect() as conn:
|
||||
try:
|
||||
# User indexes
|
||||
|
||||
Reference in New Issue
Block a user