This commit is contained in:
@ -71,10 +71,15 @@ async def get_entries(user: Annotated[User, Depends(login)]):
|
|||||||
|
|
||||||
|
|
||||||
@router.get('/getVaccsReport')
|
@router.get('/getVaccsReport')
|
||||||
async def get_vaccs_report(user: Annotated[User, Depends(login)]):
|
async def get_vaccs_report(
|
||||||
|
user: Annotated[User, Depends(login)], resultId: str | None = None
|
||||||
|
):
|
||||||
"""
|
"""
|
||||||
Get report of vaccinations for user by id.
|
Get report of vaccinations for user by id.
|
||||||
"""
|
"""
|
||||||
|
if resultId is not None:
|
||||||
|
return await c.vitacore_api.getDiagResultFile(resultId)
|
||||||
|
|
||||||
return await c.vitacore_api.getVaccsReport(user.vita_id)
|
return await c.vitacore_api.getVaccsReport(user.vita_id)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user