ferrero-opentext/Python-Version/scripts
DJP 30ffdb519e Fix email template variable syntax - use Jinja2 double braces
Issue: Email body showed {campaign_name} instead of actual values
Cause: HTML templates used {variable} (Python format) but rendered with Jinja2
Fix: Changed all HTML template variables to {{ variable }} (Jinja2 syntax)

Templates Fixed:
- a1_to_a2_complete: {{ campaign_name }}, {{ campaign_id }}, {{ campaign_number }}, {{ asset_count }}
- a2_to_a3_complete: {{ campaign_name }}, {{ campaign_id }}, {{ asset_count }}
- upload_failed: {{ filename }}, {{ tracking_id }}, {{ error }}
- a1_to_a2_partial: {{ campaign_name }}, {{ campaign_id }}, {{ total_assets }}, {{ successful }}, {{ failed }}

Note: Subject lines use {variable} (Python .format()) which is correct
      HTML bodies use {{ variable }} (Jinja2) which is now correct

Email notifications will now display all values properly!

🤖 Generated with Claude Code
2025-10-30 18:54:27 -04:00
..
shared Fix email template variable syntax - use Jinja2 double braces 2025-10-30 18:54:27 -04:00
a1_to_a2_download.py Fix Box folder naming - use campaign ID (C000000078) not asset ID 2025-10-30 18:19:06 -04:00
a2_to_a3_upload.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
test_connection.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00