teszt állományok áthelyezése és szelektálása
This commit is contained in:
12
tests/archive/check_branch.py.old
Normal file
12
tests/archive/check_branch.py.old
Normal 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())
|
||||
Reference in New Issue
Block a user