This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user