This commit is contained in:
@ -53,8 +53,7 @@ async def callback(session: AsyncSessionDep, code: str):
|
|||||||
vita_user = await c.vitacore_api.findBySnils(esia_user.snils)
|
vita_user = await c.vitacore_api.findBySnils(esia_user.snils)
|
||||||
patId = vita_user.patId
|
patId = vita_user.patId
|
||||||
except e.UnknownException:
|
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_stmt = select(User).where(User.vita_id == patId).limit(1)
|
||||||
existing_user = (
|
existing_user = (
|
||||||
|
|||||||
@ -187,11 +187,12 @@ async def get_pat_flg(user: Annotated[User, Depends(login)]):
|
|||||||
|
|
||||||
|
|
||||||
@router.get('/queue', response_model=list[ts.QueueModel])
|
@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.
|
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')
|
@router.get('/aemd')
|
||||||
|
|||||||
Reference in New Issue
Block a user