Фиксы

This commit is contained in:
2025-09-24 04:27:08 +03:00
parent 967bb8d936
commit 178f3a8925
5 changed files with 83 additions and 93 deletions

View File

@ -44,7 +44,9 @@ async def measurement(
@router.get('/measurements')
async def measurements(user: Annotated[str, Depends(login)],):
async def measurements(
user: Annotated[str, Depends(login)],
):
data = [cache.get(key) for key in cache.keys(f'tdn:measurement:{user}:*')]
return data
@ -114,7 +116,7 @@ async def get_vaccs_report(user: Annotated[str, Depends(login)]):
@router.get('/getDiagnosticResults')
async def get_diagnostic_results(user: Annotated[str, Depends(login)]):
return mock.diagnosticResults[0]
return mock.diagnosticResults
@router.get('/getCurrHosp')