diff options
author | Dave Arter <davea@mysociety.org> | 2017-07-24 16:09:27 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-07-24 17:12:18 +0100 |
commit | 3fb659de784e8cc40817f072f7181187f460f860 (patch) | |
tree | a137b8258b760d6659604d08d7a6b7a51bfe7aaf /bin | |
parent | 362b8ca38939ca35dff8a04c0ac3434e6b3559cc (diff) |
[Oxfordshire] RDI file should show all inspections as happening on the same date
Fixes mysociety/fixmystreetforcouncils#203
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/oxfordshire/send-rdi-emails | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/oxfordshire/send-rdi-emails b/bin/oxfordshire/send-rdi-emails index ef0931d6c..11e7a6fe9 100755 --- a/bin/oxfordshire/send-rdi-emails +++ b/bin/oxfordshire/send-rdi-emails @@ -21,6 +21,7 @@ use FixMyStreet::Integrations::ExorRDI; my $end_date = DateTime->now( time_zone => FixMyStreet->time_zone || FixMyStreet->local_time_zone ) ->truncate(to => 'hour')->set_hour(16); my $start_date = $end_date->clone->subtract(days => 1); +my $inspection_date = $end_date; # All inspections are considered to have happened on the same date. my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker('oxfordshire')->new; $cobrand->set_lang_and_domain('en-gb', 1); @@ -35,6 +36,7 @@ foreach my $inspector (@inspectors) { my $params = { start_date => $start_date, end_date => $end_date, + inspection_date => $inspection_date, user => $inspector, }; my $rdi = FixMyStreet::Integrations::ExorRDI->new($params); |