Initializing hub database

This commit is contained in:
2025-04-02 23:53:31 +02:00
parent c03c0ae3e5
commit a0f2284efa
3 changed files with 18 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ from contextlib import asynccontextmanager
from fastapi import FastAPI
from hub import init_db as hub_init_db
from hub.auth import oauth_router
if __name__ == '__main__':
@@ -11,6 +12,7 @@ if __name__ == '__main__':
@asynccontextmanager
async def lifespan(app: FastAPI):
await hub_init_db()
# create_db_and_tables()
# create_admin_user()
yield