jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/370368 )

Change subject: Don't create Wikidata items for category redirects
......................................................................


Don't create Wikidata items for category redirects

They are not allowed in Wikidata: 
https://www.wikidata.org/wiki/Wikidata:Notability/Exclusion_criteria

*T172621

Change-Id: Ie7c8f4204b1af1beb3260bd59f542743a9052552
---
M scripts/newitem.py
1 file changed, 3 insertions(+), 0 deletions(-)

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



diff --git a/scripts/newitem.py b/scripts/newitem.py
index f650b40..ad1e0bf 100755
--- a/scripts/newitem.py
+++ b/scripts/newitem.py
@@ -109,6 +109,9 @@
                 u'Page creation of %s on %s is too recent. Skipping.'
                 % (page, page.editTime().isoformat()))
             return
+        if page.isCategoryRedirect():
+            pywikibot.output('%s is a category redirect. Skipping.' % page)
+            return
 
         if page.langlinks():
             # FIXME: Implement this

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie7c8f4204b1af1beb3260bd59f542743a9052552
Gerrit-PatchSet: 6
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XXN <dan10r...@gmail.com>
Gerrit-Reviewer: Magul <tomasz.magul...@gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.w...@gmail.com>
Gerrit-Reviewer: XXN <dan10r...@gmail.com>
Gerrit-Reviewer: Xqt <i...@gno.de>
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