forked from VinokurovVE/tests
General
This commit is contained in:
@ -90,5 +90,17 @@ async def update_user(user: schemas.User, id: int):
|
||||
return {f"{id=} был обновлен"}
|
||||
|
||||
|
||||
async def get_objects():
|
||||
async with async_session() as session:
|
||||
result = await session.scalars(select(models.Object))
|
||||
return result.all()
|
||||
|
||||
|
||||
async def get_values():
|
||||
async with async_session() as session:
|
||||
result = await session.scalars(select(models.Value))
|
||||
return result.all()
|
||||
|
||||
|
||||
async def get_stored_roles():
|
||||
return await exec_procedure('get_roles')
|
Reference in New Issue
Block a user