Фикс
All checks were successful
Build And Push / publish (push) Successful in 2m34s

This commit is contained in:
2026-04-15 15:25:11 +03:00
parent d40964afa6
commit 2f672e3f39
2 changed files with 4 additions and 2 deletions

View File

@ -117,7 +117,9 @@ async def get_vaccs_report_download(
raise e.BadRequestException
filename = f'vaccs_report_{resultId or user.vita_id}.doc'
xml_model = s.ClinicalDocument.from_xml(file.content.encode('utf-8'))
xml_data = base64.b64decode(file.content)
xml_data = xml_data.strip()
xml_model = s.ClinicalDocument.from_xml(xml_data)
inner_base64 = xml_model.component.non_xml_body.text.content.strip()
temp_link_token = token_urlsafe(32)