aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-07-07 15:11:50 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-07-07 20:59:48 +0100
commit172d3697b791f647354daeb76bb31785394c8b7b (patch)
tree4c423a54787d87e294750a7a4515efdbb4a260e3 /perllib
parent36384c1d1bb03e03df57735a84819e04ba9a8a6a (diff)
[fixmystreet.com] Fixed includes questionnaires.
Questionnaire responses don't currently set problem_state.
Diffstat (limited to 'perllib')
-rwxr-xr-xperllib/FixMyStreet/Script/UpdateAllReports.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Script/UpdateAllReports.pm b/perllib/FixMyStreet/Script/UpdateAllReports.pm
index 107143aa2..03c7dfb26 100755
--- a/perllib/FixMyStreet/Script/UpdateAllReports.pm
+++ b/perllib/FixMyStreet/Script/UpdateAllReports.pm
@@ -140,7 +140,10 @@ sub generate_dashboard {
%problems_fixed_by_period = stuff_by_day_or_year('day',
'Comment',
confirmed => { '>=', \"current_timestamp-'8 days'::interval" },
- problem_state => [ FixMyStreet::DB::Result::Problem->fixed_states() ],
+ -or => [
+ problem_state => [ FixMyStreet::DB::Result::Problem->fixed_states() ],
+ mark_fixed => 1,
+ ],
);
my %problems_updated_by_period = stuff_by_day_or_year('day',
'Comment',