aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-12-13 11:21:20 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-15 00:11:06 +0000
commit0bcae44e9b9837f25f9b8f96988c71929f4bd43b (patch)
tree4c382b2ab3111de8adb5d20b5243b874848a5157 /bin
parent5b0e94269864a0a757d5954c1413888eb798f898 (diff)
Convert PopulateServiceList to use body IDs.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/open311-populate-service-list6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/open311-populate-service-list b/bin/open311-populate-service-list
index a0bee2992..c72c04e65 100755
--- a/bin/open311-populate-service-list
+++ b/bin/open311-populate-service-list
@@ -14,12 +14,12 @@ my ($opt, $usage) = describe_options(
);
print($usage->text), exit if $opt->help;
-my $council_list = FixMyStreet::App->model('DB::Body')->search( {
+my $bodies = FixMyStreet::App->model('DB::Body')->search( {
send_method => 'Open311'
} );
my $verbose = 0;
$verbose = 1 if $opt->warn;
$verbose = 2 if $opt->verbose;
-my $p = Open311::PopulateServiceList->new( council_list => $council_list, verbose => $verbose );
+my $p = Open311::PopulateServiceList->new( bodies => $bodies, verbose => $verbose );
-$p->process_councils;
+$p->process_bodies;