feat: Add pagination with total count to generation listings and enable filtering assets by type.
This commit is contained in:
4
main.py
4
main.py
@@ -51,7 +51,8 @@ ADMIN_ID = int(os.getenv("ADMIN_ID", 0))
|
||||
|
||||
def setup_logging():
|
||||
logging.basicConfig(level=logging.INFO,
|
||||
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s")
|
||||
format="%(asctime)s [%(levelname)s] %(name)s (%(filename)s:%(lineno)d): %(message)s",
|
||||
force=True)
|
||||
|
||||
|
||||
# --- ИНИЦИАЛИЗАЦИЯ ЗАВИСИМОСТЕЙ ---
|
||||
@@ -115,6 +116,7 @@ gen_router.message.middleware(AlbumMiddleware(latency=0.8))
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
# --- STARTUP ---
|
||||
setup_logging()
|
||||
print("🚀 Starting up...")
|
||||
|
||||
# 1. Настройка DAO для FastAPI
|
||||
|
||||
Reference in New Issue
Block a user