Xqt created this task.
Xqt added projects: Pywikibot-core, Pywikibot-redirect.py.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

redirect.py does not follow -total option, it always +1 on top of the -total number. The reason is that Bot.run increases the _treat_counter after the `treat(page) was done but RedirectBot uses the old value after action()` was done.

C:\pwb\GIT\core>py -2 pwb.py redirect do -total:2

Retrieving double redirect special page...
Retrieving 7 pages from wikipedia:de.


>>> Vorlage:Beteiligen/Kandidatinnensuche <<<
Skipping: Page [[Vorlage:Beteiligen/Kandidatinnensuche]] is not a redirect.
(0, 2)


>>> Haufe.de <<<
   Links to: [[Lexware]].
Skipping: Redirect target [[Lexware]] is not a redirect.
(1, 2)


>>> Haufe Mediengruppe <<<
   Links to: [[Lexware]].
Skipping: Redirect target [[Lexware]] is not a redirect.
(2, 2)

Number of pages reached the total limit. Script terminated.

User quit RedirectRobot bot run...

2 pages read
0 pages written
Execution time: 1 seconds
Read operation time: 0 seconds

TASK DETAIL
https://phabricator.wikimedia.org/T167254

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to