Added properly working imports with minions and status
This commit is contained in:
parent
22e6001362
commit
d0506c2a95
7 changed files with 49 additions and 59 deletions
|
@ -15,7 +15,9 @@ sub import_csv {
|
|||
|
||||
my $rows = $self->csv_data;
|
||||
|
||||
return $rows;
|
||||
foreach my $row ( @{$rows} ) {
|
||||
$self->_row_to_result($row);
|
||||
}
|
||||
}
|
||||
|
||||
sub _row_to_result {
|
||||
|
|
|
@ -19,11 +19,10 @@ sub import_csv {
|
|||
my ($self) = @_;
|
||||
|
||||
my $rows = $self->csv_data;
|
||||
my $lcc_org = $self->schema->resultset('Organisation')->find({ name => "Lancashire County Council" });
|
||||
|
||||
foreach my $row ( @{$rows} ) {
|
||||
$self->_row_to_result($row, $lcc_org);
|
||||
$self->_row_to_result($row);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
sub _row_to_result {
|
||||
|
|
Reference in a new issue