aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-05-15 13:05:17 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-05-23 18:55:10 +0100
commit15678f4923a3395fc3bb4b6c6cc82cf38d09021e (patch)
treea8ae0b8b0a1d48f79e41fcaedcd5dd155620e8ec /bin
parenteb58ad65f8b25be9dc4321ca5914ad1d89f8bf3a (diff)
Add ability to close updates on reports.
The inactive report script can mark matched reports as closed for updates. This removes the update form and signing up for updates from a report page.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/process-inactive-reports7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/process-inactive-reports b/bin/process-inactive-reports
index 3f133d11a..d2c030c2c 100755
--- a/bin/process-inactive-reports
+++ b/bin/process-inactive-reports
@@ -15,9 +15,9 @@ use FixMyStreet::Script::Inactive;
use Pod::Usage;
my %h;
-GetOptions(\%h, 'anonymize=i', 'verbose|v', 'help|h', 'dry-run|n');
+GetOptions(\%h, 'anonymize=i', 'close=i', 'verbose|v', 'help|h', 'dry-run|n');
pod2usage(0) if $h{help};
-pod2usage(1) unless $h{anonymize};
+pod2usage(1) unless $h{anonymize} || $h{close};
FixMyStreet::Script::Inactive->new(%h)->reports;
@@ -29,10 +29,11 @@ process-inactive-reports - deal with anonymizing inactive non-open reports
=head1 SYNOPSIS
-process-inactive-reports --anonymize N
+process-inactive-reports [--anonymize N] [--close N]
Options:
--anonymize Anonymize non-open reports (and related) inactive longer than this time (months)
+ --close Close comments on non-open reports inactive longer than this time (months)
--dry-run Don't actually anonymize anything or send any emails
--verbose Output as to which reports are being affected
--help This help message