diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-07 14:01:39 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-14 11:12:12 +0100 |
commit | f604fb2765b2845ddf5c8ba12832348e9d59016c (patch) | |
tree | 2a2f61cac11baf3cec3f854da12bebb8e9684057 /bin/update-all-reports | |
parent | 22226c7893167ebdb86363587cd1635a9b717ece (diff) |
New version of /reports main page.
This is a much broader summary page, plus a body name autocomplete.
This was originally implemented for fixmystreet.com in 8a6a4ccb7.
It also adds '(no longer exists)' in the autocomplete next to
bodies not covering any areas.
You can supply the `--table` argument to `update-all-reports` to
generate the old-style data.
Diffstat (limited to 'bin/update-all-reports')
-rwxr-xr-x | bin/update-all-reports | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/update-all-reports b/bin/update-all-reports index 02f9fda78..250901312 100755 --- a/bin/update-all-reports +++ b/bin/update-all-reports @@ -21,13 +21,13 @@ use Getopt::Long::Descriptive; my ($opt, $usage) = describe_options( '%c %o', - [ 'dashboard', "Output JSON for new dashboard-style page." ], + [ 'table', "Output JSON for old table-style page." ], [ 'help', "print usage message and exit", { shortcircuit => 1 } ], ); print($usage->text), exit if $opt->help; -if ($opt->dashboard) { - FixMyStreet::Script::UpdateAllReports::generate_dashboard(); -} else { +if ($opt->table) { FixMyStreet::Script::UpdateAllReports::generate(); +} else { + FixMyStreet::Script::UpdateAllReports::generate_dashboard(); } |