From 630ad091519dff8aa9371502005fbb788d349632 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Fri, 6 Mar 2020 18:11:35 +0000 Subject: order unsent reports in admin summary by confirmed Make it a bit easier to see if any reports have been sitting unsent for some time --- perllib/FixMyStreet/App/Controller/Admin.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm') diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 047d15fe3..bd45ad55e 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -73,6 +73,9 @@ sub index : Path : Args(0) { bodies_str => { '!=', undef }, # Ignore very recent ones that probably just haven't been sent yet confirmed => { '<', \"current_timestamp - '5 minutes'::interval" }, + }, + { + order_by => 'confirmed', } )->all; $c->stash->{unsent_reports} = \@unsent; -- cgit v1.2.3