leagle / check_progress.py
PerseusKyogre09
Deploy core engine with institutional fallback (v1.0.1)
f92be26
raw
history blame contribute delete
417 Bytes
import asyncio
from core.database import engine
from sqlalchemy import select
from models.regulation import Regulation
from sqlalchemy.ext.asyncio import AsyncSession
async def run():
async with AsyncSession(engine) as db:
res = await db.execute(select(Regulation))
regs = res.scalars().all()
print(f"Regulations Ingested: {len(regs)}")
if __name__ == "__main__":
asyncio.run(run())