diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2014-03-24 11:59:40 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2014-04-07 17:49:58 +0100 |
commit | b0170c4be0c2c3befcbe0159d4e218db5e0e37a8 (patch) | |
tree | 8f10f2a215fe1a6e7548e20ed535ce06339279a7 /bin/open311-update-reports | |
parent | 8f8d5e017e34a0b68a4b9c5c6958c827dcb6a172 (diff) |
Update old-style open311 script to use bodies.
Add some comments to the top of the open311 bin scripts.
Diffstat (limited to 'bin/open311-update-reports')
-rw-r--r-- | bin/open311-update-reports | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/open311-update-reports b/bin/open311-update-reports index e7ff34273..3b77fef89 100644 --- a/bin/open311-update-reports +++ b/bin/open311-update-reports @@ -1,4 +1,10 @@ #!/usr/bin/perl +# +# This script utilises the standard Open311 way of getting updates on reports +# (by fetching all reports for a body and looking for updates). If possible, +# please use the extension explained at +# https://github.com/mysociety/FixMyStreet/wiki/Open311-FMS---Proposed-differences-to-Open311 +# and the fetch-comments/send-comments scripts. use strict; use warnings; @@ -13,9 +19,9 @@ my $system_user = FixMyStreet::App->model('DB::User')->find_or_create( } ); -my $council_list = FixMyStreet::App->model('DB::Body'); +my $body_list = FixMyStreet::App->model('DB::Body'); my $update = Open311::GetUpdates->new( - council_list => $council_list, + body_list => $body_list, system_user => $system_user )->get_updates; |