fix: CSV import drops contact_email; add incognito browser launch to dev_run.sh
- outreach_import(): contact_email was extracted + used for dedup but missing from the INSERT — added it to the column list and values tuple - test_import_creates_prospects: strengthen to assert contact_email is actually persisted (regression test for the above bug) - dev_run.sh: after server ready, open incognito/private browser window at dev-login URL; tries google-chrome → chromium → firefox in order Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2973,9 +2973,9 @@ async def outreach_import():
|
||||
await execute(
|
||||
"""INSERT INTO suppliers
|
||||
(name, slug, country_code, region, category, website,
|
||||
tier, outreach_status, created_at)
|
||||
VALUES (?, ?, ?, 'Europe', ?, ?, 'free', 'prospect', ?)""",
|
||||
(name, slug, country_code, category, website, now),
|
||||
contact_email, tier, outreach_status, created_at)
|
||||
VALUES (?, ?, ?, 'Europe', ?, ?, ?, 'free', 'prospect', ?)""",
|
||||
(name, slug, country_code, category, website, contact_email, now),
|
||||
)
|
||||
existing_emails.add(contact_email)
|
||||
imported += 1
|
||||
|
||||
Reference in New Issue
Block a user