Add email logo to repo static/ and reference it from app root path for container

This commit is contained in:
Troll (Hermes Agent) 2026-08-01 23:50:44 +00:00
parent 8d9c86e1b7
commit ec313601b6
2 changed files with 1 additions and 6 deletions

7
app.py
View file

@ -300,17 +300,12 @@ def send_email(to, subject, body, attachments=None, inline_images=None):
def build_signature_images(): def build_signature_images():
"""Return inline image tuple list for the Dionysis Media logo.""" """Return inline image tuple list for the Dionysis Media logo."""
logo_path = Path('/mnt/Storage/DM-Logo_email.png') logo_path = Path(current_app.root_path) / 'static' / 'DM-Logo_email.png'
if not logo_path.exists(): if not logo_path.exists():
return [] return []
return [(str(logo_path), 'dm-logo')] return [(str(logo_path), 'dm-logo')]
# ---------------------------------------------------------------------------
# Public customer routes
# ---------------------------------------------------------------------------
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Public customer routes # Public customer routes
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------

BIN
static/DM-Logo_email.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB