Патч
All checks were successful
Build And Push / publish (push) Successful in 1m23s

This commit is contained in:
2025-12-14 22:15:50 +03:00
parent f53121274b
commit b138e4f47c
2 changed files with 4 additions and 4 deletions

View File

@ -53,8 +53,7 @@ async def callback(session: AsyncSessionDep, code: str):
vita_user = await c.vitacore_api.findBySnils(esia_user.snils)
patId = vita_user.patId
except e.UnknownException:
patId = 'b66a85f1-4aaa-4db8-942a-2de44341824e'
# raise e.BadRequestException(detail='Patient not found') from None
raise e.BadRequestException(detail='Patient not found') from None
existing_user_stmt = select(User).where(User.vita_id == patId).limit(1)
existing_user = (

View File

@ -187,11 +187,12 @@ async def get_pat_flg(user: Annotated[User, Depends(login)]):
@router.get('/queue', response_model=list[ts.QueueModel])
async def queue(_: Annotated[User, Depends(login)]):
async def queue(user: Annotated[User, Depends(login)]):
"""
Get list of VKS queues.
"""
return await c.tmk_api.getQueue()
profile = await c.vitacore_api.getProfile(user.vita_id)
return await c.tmk_api.getQueue(patient_snils=profile.SNILS)
@router.get('/aemd')