From 55412b79394ff1b1cabe368aed67fa8f68680ecc Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 25 Sep 2015 22:35:39 +0100 Subject: Reduce use of FixMyStreet::App. Command line scripts don't need a full blown app, just database. --- bin/problems-filed-graph | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/problems-filed-graph') diff --git a/bin/problems-filed-graph b/bin/problems-filed-graph index a930e4346..950797ebe 100755 --- a/bin/problems-filed-graph +++ b/bin/problems-filed-graph @@ -20,7 +20,7 @@ BEGIN { use File::Temp qw(tempfile); -use FixMyStreet::App; +use FixMyStreet::DB; my %config = ( gplot_output => "set terminal png font 'Vera.ttf' 9 size 1200,600", @@ -29,7 +29,7 @@ my %config = ( my ($fh, $source) = tempfile("fms-report-rate-graph-data-nonwmc-XXXXXXXXXX", UNLINK => 1); -my @entries = FixMyStreet::App->model('DB::Problem')->search({ +my @entries = FixMyStreet::DB->resultset('Problem')->search({ state => { -not_in => [ 'unconfirmed', 'hidden', 'partial' ] }, }, { columns => [ -- cgit v1.2.3