[opus-guard-fix-b2b] segmentation_b2b_b2c guard - fix key industries_b2b_all_sources (API v3) + inject pipeline_contacts B2B block (60k imported) + top decision makers output
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled

This commit is contained in:
opus
2026-04-17 14:46:56 +02:00
parent 4228fe2edd
commit faa26b1971

View File

@@ -223,11 +223,26 @@ if (!empty($_mam)) {
$__msg .= " send_contacts: " . number_format($__p['send_contacts_classified'] ?? 0, 0, '.', ',') . " / " . number_format($__p['send_contacts_total'] ?? 0, 0, '.', ',') . " (" . ($__p['send_contacts_pct'] ?? 0) . "%)\n";
$__msg .= "\nIndustries B2B Top 10:\n";
$__i = 0;
foreach (($__d['industries_b2b'] ?? []) as $__ind => $__cnt) {
foreach ((($__d['industries_b2b_all_sources'] ?? $__d['industries_b2b']) ?? []) as $__ind => $__cnt) {
$__msg .= " " . $__ind . ": " . number_format($__cnt, 0, '.', ',') . "\n";
if (++$__i >= 10) break;
}
$__msg .= "\nDashboard: https://weval-consulting.com/contacts-segmentation-dashboard.html";
$__pip_tot = (int)($__d['progress']['pipeline_contacts_total'] ?? 0);
$__pip_link = (int)($__d['progress']['pipeline_contacts_linked_company'] ?? 0);
$__msg .= " pipeline_contacts: " . number_format($__pip_tot, 0, '.', ',') . " (linked: " . number_format($__pip_link, 0, '.', ',') . ")\n";
$__msg .= "\nIndustries B2B from pipeline_contacts (quality import):\n";
$__i = 0;
foreach (($__d['industries_pipeline_contacts_b2b'] ?? []) as $__ind => $__cnt) {
$__msg .= " " . $__ind . ": " . number_format($__cnt, 0, '.', ',') . "\n";
if (++$__i >= 15) break;
}
$__msg .= "\nTop decision makers:\n";
$__i = 0;
foreach (($__d['top_decision_makers'] ?? []) as $__tt) {
$__msg .= " " . $__tt['title'] . ": " . number_format($__tt['count'], 0, '.', ',') . "\n";
if (++$__i >= 10) break;
}
$__msg .= "\n$__msg .= "\nDashboard: https://weval-consulting.com/contacts-segmentation-dashboard.html";
} else {
$__msg = "Segmentation query failed";
}