aboutsummaryrefslogtreecommitdiffstats
path: root/bin/open311-populate-service-list
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-05-28 23:09:20 +0100
committerStruan Donald <struan@exo.org.uk>2012-05-28 23:09:20 +0100
commit131ff6e9bf3626d6a8fff6ae54669d250148a63a (patch)
tree90f1f1261e91a513f759453682c3d4d8fb021ab2 /bin/open311-populate-service-list
parent959012b397c40638eaa62cd911f416f605043330 (diff)
only look for service lists on open311 end points
Diffstat (limited to 'bin/open311-populate-service-list')
-rwxr-xr-xbin/open311-populate-service-list4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/open311-populate-service-list b/bin/open311-populate-service-list
index 36e04f5a6..33be61af7 100755
--- a/bin/open311-populate-service-list
+++ b/bin/open311-populate-service-list
@@ -6,7 +6,9 @@ use FixMyStreet::App;
use Open311::PopulateServiceList;
-my $council_list = FixMyStreet::App->model('DB::Open311conf');
+my $council_list = FixMyStreet::App->model('DB::Open311conf')->search( {
+ send_method => 'Open311'
+} );
my $p = Open311::PopulateServiceList->new( council_list => $council_list );
$p->process_councils;