More code for import routine.

This commit is contained in:
James Cole
2017-06-22 21:50:10 +02:00
parent cddaccb7f7
commit edb355941c
9 changed files with 275 additions and 113 deletions

View File

@@ -92,6 +92,12 @@ class Map implements ConfigurationInterface
foreach ($this->data as $index => $entry) {
$this->data[$index]['values'] = array_unique($this->data[$index]['values']);
}
// save number of rows, thus number of steps, in job:
$steps = $rowIndex * 5;
$extended = $this->job->extended_status;
$extended['total_steps'] = $steps;
$this->job->extended_status = $extended;
$this->job->save();
return $this->data;