Возможно финальный фикс
All checks were successful
Build And Push / publish (push) Successful in 2m36s
All checks were successful
Build And Push / publish (push) Successful in 2m36s
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "HospitalAssistantBackend"
|
name = "HospitalAssistantBackend"
|
||||||
version = "1.5.6"
|
version = "1.5.7"
|
||||||
description = "Backend for Hospital Assistant"
|
description = "Backend for Hospital Assistant"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13,<3.14"
|
requires-python = ">=3.13,<3.14"
|
||||||
|
|||||||
@ -130,7 +130,6 @@ async def get_vaccs_report_download(
|
|||||||
xml_data = xml_data.decode('utf-8').strip()
|
xml_data = xml_data.decode('utf-8').strip()
|
||||||
xml_model = parser.from_string(xml_data, ClinicalDocument)
|
xml_model = parser.from_string(xml_data, ClinicalDocument)
|
||||||
pdf_string = xml_model.component.non_xmlbody.text.value.strip()
|
pdf_string = xml_model.component.non_xmlbody.text.value.strip()
|
||||||
pdf_bytes = base64.b64decode(pdf_string)
|
|
||||||
|
|
||||||
temp_link_token = token_urlsafe(32)
|
temp_link_token = token_urlsafe(32)
|
||||||
await cache.set(
|
await cache.set(
|
||||||
@ -139,7 +138,7 @@ async def get_vaccs_report_download(
|
|||||||
{
|
{
|
||||||
'filename': filename,
|
'filename': filename,
|
||||||
'content_type': 'application/pdf',
|
'content_type': 'application/pdf',
|
||||||
'data': pdf_bytes,
|
'data': pdf_string,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
ex=600,
|
ex=600,
|
||||||
|
|||||||
Reference in New Issue
Block a user