XZise has uploaded a new change for review.

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

Change subject: Remove categories also from files
......................................................................

Remove categories also from files

Change-Id: Idaa1bb7983e6b052e83e258d2b2b588c4385d62c
---
M scripts/category.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/45/149645/1

diff --git a/scripts/category.py b/scripts/category.py
index 3923ca0..552e26c 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -647,8 +647,8 @@
                                                 {'oldcat': self.cat.title()})
 
     def run(self):
-        if self.cat.categoryinfo['pages'] == 0:
-            pywikibot.output(u'There are no articles in category %s'
+        if self.cat.categoryinfo['pages'] == 0 and 
self.cat.categoryinfo['files'] == 0:
+            pywikibot.output(u'There are no articles and files in category %s'
                              % self.cat.title())
         else:
             for article in self.cat.articles():

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idaa1bb7983e6b052e83e258d2b2b588c4385d62c
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <commodorefabia...@gmx.de>

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

Reply via email to