diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/open311-update-reports | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/open311-update-reports b/bin/open311-update-reports new file mode 100644 index 000000000..e7ff34273 --- /dev/null +++ b/bin/open311-update-reports @@ -0,0 +1,21 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use Open311::GetUpdates; +use FixMyStreet::App; + +# FIXME - make this configurable and/or better +my $system_user = FixMyStreet::App->model('DB::User')->find_or_create( + { + email => FixMyStreet::App->config->{'CONTACT_EMAIL'}, + name => 'System User', + } +); + +my $council_list = FixMyStreet::App->model('DB::Body'); + +my $update = Open311::GetUpdates->new( + council_list => $council_list, + system_user => $system_user +)->get_updates; |