diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2013-12-05 15:54:53 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2013-12-09 16:51:38 +0000 |
commit | 1ad7eb19f18ac58f63ce6bf6b289b658a75b67a8 (patch) | |
tree | 12156d997d46be7ebfc730163f78fb2f40dd7ec7 | |
parent | c502dee1bc70a1306bfd7fdc84cbeef3c6a96c49 (diff) |
[Zurich] moderation cron only checks 'unconfirmed'
see mysociety/FixMyStreet-Commercial#459 - "a report is moderated as
soon as its state has changed for the first time from Erfasst (en:
Submitted / db: unconfirmed) to any other state."
Thus we move 'confirmed' problems from the 1-day moderation SLA, to
a 5-day one, with $include_parent unset (e.g. as with 'planned' it
is with the DM, so doesn't need to be sent to the parent body also.)
-rwxr-xr-x | bin/zurich-overdue-alert | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/zurich-overdue-alert b/bin/zurich-overdue-alert index 4a507c481..500c6b016 100755 --- a/bin/zurich-overdue-alert +++ b/bin/zurich-overdue-alert @@ -23,9 +23,9 @@ exit if FixMyStreet::Cobrand::Zurich::is_public_holiday($now) or FixMyStreet::Co my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker('zurich')->new(); my %bodies = map { $_->id => $_ } FixMyStreet::App->model("DB::Body")->all; -loop_through( 'alert-moderation-overdue.txt', 0, 1, [ 'unconfirmed', 'confirmed' ] ); +loop_through( 'alert-moderation-overdue.txt', 0, 1, [ 'unconfirmed' ] ); loop_through( 'alert-overdue.txt', 1, 6, 'in progress' ); -loop_through( 'alert-overdue.txt', 0, 6, 'planned' ); +loop_through( 'alert-overdue.txt', 0, 6, ['confirmed', 'planned'] ); sub loop_through { my ( $template, $include_parent, $days, $states ) = @_; |