Browse Source

nb_shipments dans import collectivités

master
tibo 6 years ago
parent
commit
5fc5065b6e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      bin/import_01_collectivites.php

+ 2
- 1
bin/import_01_collectivites.php View File

@ -31,8 +31,9 @@ SMETI_db::$item = SMETI_db::$pdo->lastInsertId();
SMETI_db::$parent = SMETI_db::$item; SMETI_db::$parent = SMETI_db::$item;
echo 'OK'.PHP_EOL; echo 'OK'.PHP_EOL;
$counter = 0;
$shipments = json_decode(file_get_contents("../data/json/BMO/01_COLLECTIVITES.json"), true); $shipments = json_decode(file_get_contents("../data/json/BMO/01_COLLECTIVITES.json"), true);
$counter = 0;
$nb_shipments = count($shipments);
foreach($shipments as $element) foreach($shipments as $element)
{ {
// Gestion d'une barre de progression // Gestion d'une barre de progression

Loading…
Cancel
Save