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:
parent
563df6c5d4
commit
e510cefb88
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue