jenkins-bot has submitted this change and it was merged.

Change subject: [bugfix] recognize the depth parameter given by -subpage option
......................................................................


[bugfix] recognize the depth parameter given by -subpage option

Bug: T145937
Change-Id: Ic2d16be028a351c598cd702aa95ad13aa8f19235
---
M pywikibot/pagegenerators.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Sn1per: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py
index f3c2a86..e60c98f 100644
--- a/pywikibot/pagegenerators.py
+++ b/pywikibot/pagegenerators.py
@@ -909,7 +909,7 @@
             self.intersect = True
             return True
         elif arg == '-subpage':
-            if value:
+            if not value:
                 value = pywikibot.input(
                     'Maximum subpage depth:')
             self.subpage_max_depth = int(value)

-- 
To view, visit https://gerrit.wikimedia.org/r/311237
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic2d16be028a351c598cd702aa95ad13aa8f19235
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <i...@gno.de>
Gerrit-Reviewer: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.w...@gmail.com>
Gerrit-Reviewer: Sn1per <geof...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to