патч
All checks were successful
Build And Push / publish (push) Successful in 3m30s

This commit is contained in:
2025-11-18 09:42:42 +03:00
parent 5b0fb8f536
commit c56468b521

View File

@ -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)