Implements version counter for re-scored files and cleans up numeric formatting. Decimal Removal: - Strip .0 suffix from creativex_id (6864255.0 → 6864255) - Strip .0 suffix from quality_score (80.0 → 80) - Converts float → int → string before storing - Cleaner data for display and DAM integration Version Tracking: - Counts total versions per filename (active + superseded) - Returns version_number in database result - Logs show version: "Score 80 extracted (Version 3)" - Email templates display version badges for updates Email Template Updates: - Complete template: Shows "Version 3 (Updated)" badge in header - Includes note: "This is version 3 of this file" - Partial template: Shows "(Version 3)" inline - Only displays version info if > 1 Database Changes: - Query counts ALL versions before insert - Returns version_number in result dict - Logs include version in success/update messages Benefits: - Clean numeric values without unnecessary decimals - Users can see if file was re-scored - Version history visible in emails - Still preserves all history in database - A2→A3 integration unaffected (always gets latest active) Example progression: Upload 1: Score 80 (no version shown - it's the first) Upload 2: Score 85 (Version 2 badge shown) Upload 3: Score 90 (Version 3 badge shown) Documentation: CREATIVEX_VERSION_UPDATES.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __pycache__ | ||
| __init__.py | ||
| box_client.py | ||
| config_loader.py | ||
| dam_client.py | ||
| database.py | ||
| filename_parser.py | ||
| metadata_extractor_mvp.py | ||
| notifier.py | ||