Возможно финальный фикс
All checks were successful
Build And Push / publish (push) Successful in 2m36s

This commit is contained in:
2026-04-15 16:37:24 +03:00
parent f4a4bd7ddd
commit bb77d58660
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "HospitalAssistantBackend"
version = "1.5.6"
version = "1.5.7"
description = "Backend for Hospital Assistant"
readme = "README.md"
requires-python = ">=3.13,<3.14"

View File

@ -130,7 +130,6 @@ async def get_vaccs_report_download(
xml_data = xml_data.decode('utf-8').strip()
xml_model = parser.from_string(xml_data, ClinicalDocument)
pdf_string = xml_model.component.non_xmlbody.text.value.strip()
pdf_bytes = base64.b64decode(pdf_string)
temp_link_token = token_urlsafe(32)
await cache.set(
@ -139,7 +138,7 @@ async def get_vaccs_report_download(
{
'filename': filename,
'content_type': 'application/pdf',
'data': pdf_bytes,
'data': pdf_string,
}
),
ex=600,