say(' … ' . $m)); $geo = (int) $pdo->query('SELECT COUNT(*) FROM dpe WHERE lat IS NOT NULL')->fetchColumn(); say("✔ dpe : $n DPE importés ($geo géolocalisés)."); say('→ Lancez maintenant « php match_dpe.php » pour rattacher les DPE aux établissements.'); say('🎉 Terminé.'); } catch (Throwable $e) { if (isset($pdo) && $pdo->inTransaction()) { $pdo->rollBack(); } http_response_code(500); say('!! ERREUR : ' . $e->getMessage()); exit(1); }