mirror of
https://github.com/StepanovPlaton/torrent_backend.git
synced 2026-04-03 20:30:38 +04:00
9 lines
201 B
Python
9 lines
201 B
Python
from sqlalchemy.ext.asyncio import AsyncSession
|
|
from sqlalchemy.future import select
|
|
|
|
from .models import *
|
|
|
|
|
|
async def get_user(db: AsyncSession, user_id: int):
|
|
return await db.get(User, user_id)
|