Pyfisch has uploaded a new change for review.

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


Change subject: Fixing option order.
......................................................................

Fixing option order.

Change-Id: I23d2a9f7186a7a532d2836efd99590f81d75da70
---
M pagegenerators.py
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat 
refs/changes/12/94612/1

diff --git a/pagegenerators.py b/pagegenerators.py
index 8decfb0..ebfc496 100644
--- a/pagegenerators.py
+++ b/pagegenerators.py
@@ -340,16 +340,16 @@
                 title = i18n.input('pywikibot-enter-page-processing')
             page = pywikibot.Page(site, title)
             gen = InterwikiPageGenerator(page)
-        elif arg.startswith('-random'):
-            if len(arg) == 7:
-                gen = RandomPageGenerator()
-            else:
-                gen = RandomPageGenerator(number=int(arg[8:]))
         elif arg.startswith('-randomredirect'):
             if len(arg) == 15:
                 gen = RandomRedirectPageGenerator()
             else:
                 gen = RandomRedirectPageGenerator(number=int(arg[16:]))
+        elif arg.startswith('-random'):
+            if len(arg) == 7:
+                gen = RandomPageGenerator()
+            else:
+                gen = RandomPageGenerator(number=int(arg[8:]))
         elif arg.startswith('-recentchanges'):
             if len(arg) >= 15:
                 gen = RecentchangesPageGenerator(number=int(arg[15:]))

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I23d2a9f7186a7a532d2836efd99590f81d75da70
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Pyfisch <pyfi...@googlemail.com>

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

Reply via email to