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:
Deeman
2026-02-25 21:22:49 +01:00
parent d9a645976d
commit 4235009db9
3 changed files with 31 additions and 7 deletions

View File

@@ -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