diff --git a/pyproject.toml b/pyproject.toml index df7c187..c1dbbe1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/apps/users/v1/router.py b/src/apps/users/v1/router.py index ed90282..c0ec6c2 100644 --- a/src/apps/users/v1/router.py +++ b/src/apps/users/v1/router.py @@ -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,