added importing doogal data for wards on postcode
This commit is contained in:
parent
9b7d8530b6
commit
c977cf3279
16 changed files with 4947 additions and 1 deletions
15
lib/Pear/LocalLoop/Plugin/Minion/Job/csv_postcode_import.pm
Normal file
15
lib/Pear/LocalLoop/Plugin/Minion/Job/csv_postcode_import.pm
Normal file
|
@ -0,0 +1,15 @@
|
|||
package Pear::LocalLoop::Plugin::Minion::Job::csv_postcode_import;
|
||||
use Mojo::Base 'Pear::LocalLoop::Plugin::Minion::Job';
|
||||
|
||||
use Pear::LocalLoop::Import::LCCCsv::Postcodes;
|
||||
|
||||
sub run {
|
||||
my ( $self, $filename ) = @_;
|
||||
|
||||
my $csv_import = Pear::LocalLoop::Import::LCCCsv::Postcodes->new(
|
||||
csv_file => $filename,
|
||||
schema => $self->app->schema
|
||||
)->import_csv;
|
||||
}
|
||||
|
||||
1;
|
Reference in a new issue