social-mi-bi/backend
Dave Porter 33c6d1acc8 Fix: re-encode html_bytes unconditionally at end of /export
Subtle bug: the substitution code modified html_str (logo placeholder,
IG protocol-relative rewrites) but the response was sent from
html_bytes, which was only re-encoded INSIDE the print-CSS-splice
branch. New decks contain 'doc-view' from the skeleton update, so
that branch was skipped — and the response sent the unmodified
original bytes from the artefact, including the literal
{{LOGO_DATA_URI}} placeholder.

Fix: pull the html_bytes = html_str.encode() out of the conditional
so every modification (logo substitution, IG https rewrite, optional
print-CSS splice) is always reflected in the response.
2026-05-05 19:54:23 -04:00
..
alembic Initial commit: social MI/BI multi-agent reporting tool 2026-04-17 17:07:44 -04:00
app Fix: re-encode html_bytes unconditionally at end of /export 2026-05-05 19:54:23 -04:00
tests Initial commit: social MI/BI multi-agent reporting tool 2026-04-17 17:07:44 -04:00
alembic.ini Initial commit: social MI/BI multi-agent reporting tool 2026-04-17 17:07:44 -04:00
pyproject.toml Initial commit: social MI/BI multi-agent reporting tool 2026-04-17 17:07:44 -04:00