fix: handle None engagement_rate in enrichment status formatting
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-12 12:53:07 +01:00
parent f4d5d17d75
commit ba97a2122d

View File

@ -905,7 +905,7 @@ def _run_enrichment_background(company_ids):
'url': f"Facebook Page: {fb_config.page_name or fb_config.page_id}",
'source': 'facebook_api',
'status': 'synced_api',
'reason': f"Graph API: {data.get('followers_count', 0)} obserwujących, engagement: {data.get('engagement_rate', 0):.1f}%",
'reason': f"Graph API: {data.get('followers_count') or 0} obserwujących, engagement: {data.get('engagement_rate') or 0:.1f}%",
})
company_result['has_changes'] = True
else: