Fix seeder crash on null game data and disable SQL logging by default

Skip games with null route data (Gen 8-9 have no PokeAPI encounters)
and silence SQLAlchemy echo unless --verbose/-v is passed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 19:43:09 +01:00
parent 5c91cef057
commit ab6c1adb1f
4 changed files with 6 additions and 4 deletions

View File

@@ -8,10 +8,13 @@ Usage:
import asyncio
import sys
from app.core.database import engine
from app.seeds.run import seed, verify
async def main():
verbose = "--verbose" in sys.argv or "-v" in sys.argv
engine.echo = verbose
await seed()
if "--verify" in sys.argv:
await verify()