develop #1

Merged
gitea merged 44 commits from develop into main 2025-11-26 01:15:20 +00:00
Showing only changes of commit b304fbbb86 - Show all commits

View File

@@ -1783,7 +1783,11 @@ def export_inspection_to_pdf(
pdf_url = f"{S3_ENDPOINT}/{S3_PDF_BUCKET}/{s3_key}"
inspection.pdf_url = pdf_url
db.commit()
return {"pdf_url": pdf_url}
# Descargar el PDF directamente
buffer.seek(0)
return StreamingResponse(buffer, media_type="application/pdf", headers={
"Content-Disposition": f"attachment; filename={filename}"
})
# ============= HEALTH CHECK =============