teszt állományok áthelyezése és szelektálása

This commit is contained in:
Roo
2026-06-05 10:50:25 +00:00
parent 18524a08f2
commit f03b5f3916
63 changed files with 633 additions and 527 deletions

View File

@@ -0,0 +1,12 @@
import asyncio
from sqlalchemy import select
from app.db.session import AsyncSessionLocal
from app.models.marketplace.organization import Branch
async def check():
async with AsyncSessionLocal() as db:
o = (await db.execute(select(Branch).limit(5))).scalars().all()
for i in o:
print(i.id, i.organization_id, i.is_main)
asyncio.run(check())