sub check_duplicates {
}
+sub check_auth {
+ $::auth->assert('config');
+}
+
sub check_std_duplicates {
my $self = shift;
$self->controller->track_progress(phase => 'saving data', progress => 0); # scale from 45..95%;
- my $dbh = $data->[0]{object}->db;
+ my $dbh = $data->[0]{object}->db->dbh;
my $last_index = $#$data;
my $chunk_size = 100; # one transaction and progress update every 100 objects
$self->controller->num_imported($self->controller->num_imported + 1);
}
}
+ 1;
}) or do { die SL::DB->client->error };
}
$self->controller->track_progress(progress => 100);