From a62c9c2c183e288dd46ba9ad08b946fdd2e2cd13 Mon Sep 17 00:00:00 2001 From: Miwory Date: Tue, 3 Feb 2026 14:34:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B0=D1=82=D1=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- src/apps/users/v1/router.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f558ccf..8f7354b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "HospitalAssistantBackend" version = "1.0.0" description = "Backend for Hospital Assistant" readme = "README.md" -requires-python = ">=3.13" +requires-python = ">=3.13,<3.14" dependencies = [ # Server "fastapi==0.116.1", diff --git a/src/apps/users/v1/router.py b/src/apps/users/v1/router.py index 65ce270..ba7c5a9 100644 --- a/src/apps/users/v1/router.py +++ b/src/apps/users/v1/router.py @@ -268,8 +268,8 @@ async def measurement( serial_number: Annotated[str, Body()], ekg: UploadFile, ): - vitaId = '109df850-2268-49fb-bb78-2e0f3c57314d' - patient = await c.tdn_api.patient_search(tdn_access_token, vitaId) + # vitaId = '109df850-2268-49fb-bb78-2e0f3c57314d' + patient = await c.tdn_api.patient_search(tdn_access_token, user.vita_id) patientUid = patient['items'][0]['uid'] observations = await c.tdn_api.observations_search( tdn_access_token, patientUid