diff options
author | Struan Donald <struan@exo.org.uk> | 2011-07-22 10:15:58 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-07-22 10:15:58 +0100 |
commit | 0dee26bdeb76a6f4e4444da7cb95b365feb8964d (patch) | |
tree | e16b1f32e6f3b64e7f3b2c6eddbc085ee87d6b4e /bin/open311-populate-service-list | |
parent | 10b03426bb8a0d50f59f3de729746fab6650248a (diff) |
accept end point and council id as command line args
Diffstat (limited to 'bin/open311-populate-service-list')
-rw-r--r-- | bin/open311-populate-service-list | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/open311-populate-service-list b/bin/open311-populate-service-list index 4fff0c501..dcdacb047 100644 --- a/bin/open311-populate-service-list +++ b/bin/open311-populate-service-list @@ -8,8 +8,10 @@ use FixMyStreet::App; use Data::Dumper; -my $council = 1; -my $end_point = 'http://seeclicktest.com/open311/services.xml?lat=38.918978274355&lng=-77.0126581192017'; +my $council = shift; +my $end_point = shift; + +die "require council id and end point\n" unless $council and $end_point; my $service_list = get( $end_point ); |