Возможно финальный фикс
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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user