ferrero-opentext/Python-Version/scripts/shared
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
..
__pycache__ Fix email template variable syntax - use Jinja2 double braces 2025-10-30 18:54:27 -04:00
__init__.py Start Python automation - Foundation components 2025-10-30 16:38:26 -04:00
box_client.py Fix Box folder naming - use campaign ID (C000000078) not asset ID 2025-10-30 18:19:06 -04:00
config_loader.py Start Python automation - Foundation components 2025-10-30 16:38:26 -04:00
dam_client.py PYTHON AUTOMATION FULLY WORKING! Complete A1→A2 workflow tested successfully 2025-10-30 17:50:24 -04:00
database.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
filename_parser.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
metadata_extractor_mvp.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
notifier.py Fix email template variable syntax - use Jinja2 double braces 2025-10-30 18:54:27 -04:00