Fix: bool(email) instead of email for campaign_eligible flag

Python 'and' returns the string, not True. Changed to bool().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-05-29 00:17:18 -05:00
parent 563df6c5d4
commit e510cefb88

View file

@ -136,7 +136,7 @@ def flag_carriers(dry_run: bool = False) -> dict:
# Determine campaign eligibility
deficiency_count = len([f for f in flags if f not in ("for_hire_carrier",)])
campaign_eligible = deficiency_count > 0 and email
campaign_eligible = deficiency_count > 0 and bool(email)
if campaign_eligible:
stats["campaign_eligible"] += 1