This commit is contained in:
2026-07-09 11:19:16 +08:00
parent 8d740a8fde
commit 54bf0a53f5
+2 -2
View File
@@ -29,7 +29,7 @@ async def lifespan(app: FastAPI):
os.makedirs(settings.UPLOAD_LOCAL_PATH, exist_ok=True)
await init_database()
await init_redis()
await _seed_data()
# await _seed_data()
# Start task queue (handles both video and image generation)
from app.services.video_queue import task_queue
@@ -120,7 +120,7 @@ async def lifespan(app: FastAPI):
await close_redis()
# async def _seed_data():
async def _seed_data():
"""Insert initial data on first run."""
from app.models import async_session
from app.models.user import User