From fbb9e2e809db917e078823faa45840845fd2fb68 Mon Sep 17 00:00:00 2001 From: Jayprakash12345 <0freerunning@gmail.com> Date: Sat, 18 Sep 2021 23:48:11 +0530 Subject: resetPageRandom.php: Fix --from and --to options These options weren't actually reading the option values, just returning `1`, which would turn into `"19700101000001"`. Bug: T291331 Change-Id: I93e11f18dc81b3875e0d3797e67553f7365ce963 --- maintenance/resetPageRandom.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/resetPageRandom.php b/maintenance/resetPageRandom.php index 5362149b37bc..65fa9136b987 100644 --- a/maintenance/resetPageRandom.php +++ b/maintenance/resetPageRandom.php @@ -33,9 +33,9 @@ class ResetPageRandom extends Maintenance { parent::__construct(); $this->addDescription( 'Reset the page_random for articles within given date range' ); $this->addOption( 'from', - 'From date range selector to select articles to update, ex: 20041011000000' ); + 'From date range selector to select articles to update, ex: 20041011000000', false, true ); $this->addOption( 'to', - 'To date range selector to select articles to update, ex: 20050708000000' ); + 'To date range selector to select articles to update, ex: 20050708000000', false, true ); $this->addOption( 'dry', 'Do not update column' ); $this->addOption( 'batch-start', 'Optional: Use when you need to restart the reset process from a given page ID offset' -- cgit v1.2.3