Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311237

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/37/311237/1

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: newchange
Gerrit-Change-Id: Ic2d16be028a351c598cd702aa95ad13aa8f19235
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <i...@gno.de>

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

Reply via email to