jenkins-bot has submitted this change and it was merged.
Change subject: Fix error because of passing too many parameters
......................................................................
Fix error because of passing too many parameters
Function delete_1_broken_redirect accepts just only one parameter,
but there is one line calling this function with two parameters,
consequently making an error. This patch trims the excessive parameter
so that the script will be functional again.
Change-Id: Ic3da077470b3358081ed8ffd85ef774d74837d40
---
M scripts/redirect.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/redirect.py b/scripts/redirect.py
index d43d0d5..ed1fc16 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -715,7 +715,7 @@
if code == 1:
continue
elif code == 0:
- self.delete_1_broken_redirect(redir_name, delete_reason)
+ self.delete_1_broken_redirect(redir_name)
count += 1
else:
self.fix_1_double_redirect(redir_name)
--
To view, visit https://gerrit.wikimedia.org/r/107521
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic3da077470b3358081ed8ffd85ef774d74837d40
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Nullzero <nullzero.free(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change and it was merged.
Change subject: Adding Czech Wikipedia to Wikipedia library in Wikidata sources
......................................................................
Adding Czech Wikipedia to Wikipedia library in Wikidata sources
Change-Id: I6e3ed96a3cbe1cc65e3b9b2ff9f9d814150e82ec
---
M harvest_template.py
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/harvest_template.py b/harvest_template.py
index ebbf5eb..8cb29d4 100644
--- a/harvest_template.py
+++ b/harvest_template.py
@@ -67,6 +67,7 @@
'be': 'Q877583',
'uk': 'Q199698',
'tr': 'Q58255',
+ 'cs': 'Q191168',
} # TODO: Should be moved to a central wikidata library
if lang in source_values:
--
To view, visit https://gerrit.wikimedia.org/r/106499
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6e3ed96a3cbe1cc65e3b9b2ff9f9d814150e82ec
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change and it was merged.
Change subject: update mw release to 1.23wmf9
......................................................................
update mw release to 1.23wmf9
Change-Id: Ie9d1c3552cf33b264a8fc1cc5fa6a03e08c343a0
---
M pywikibot/family.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/family.py b/pywikibot/family.py
index d976c8b..5566798 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -1065,7 +1065,7 @@
"""Return Wikimedia projects version number as a string."""
# Don't use this, use versionnumber() instead. This only exists
# to not break family files.
- return '1.23wmf7'
+ return '1.23wmf9'
def shared_image_repository(self, code):
return ('commons', 'commons')
--
To view, visit https://gerrit.wikimedia.org/r/107173
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie9d1c3552cf33b264a8fc1cc5fa6a03e08c343a0
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change and it was merged.
Change subject: (bug 59949) CategoryMoveRobot: do not move history by default
......................................................................
(bug 59949) CategoryMoveRobot: do not move history by default
History moving is not implemented yet, and will raise an Exception,
so the default should be to not move the history.
Change-Id: I29161bd47ba0c3b22ba98c8becc92f98abe26614
---
M scripts/category.py
1 file changed, 9 insertions(+), 8 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/category.py b/scripts/category.py
index 73988e4..95ea0ce 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -1,6 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
-"""
+("""
Scripts to manage categories.
Syntax: python category.py action [-option]
@@ -37,9 +37,10 @@
for the language, which is "Category was disbanded" in
English.
-Options for "move" action:
- * -hist - Creates a nice wikitable on the talk page of target category
- that contains detailed page history of the source category.
+Options for "move" action:"""
+ # * -hist - Creates a nice wikitable on the talk page of target category
+ # that contains detailed page history of the source category.
+ """
* -nodelete - Don't delete the old category after move
Options for several actions:
@@ -81,7 +82,7 @@
This will move all pages in the category US to the category United States.
-"""
+""")
#
# (C) Rob W.W. Hooft, 2004
# (C) Daniel Herding, 2004
@@ -393,7 +394,7 @@
def __init__(self, oldCatTitle, newCatTitle, batchMode=False,
editSummary='', inPlace=False, moveCatPage=True,
deleteEmptySourceCat=True, titleRegex=None,
- useSummaryForDeletion=True, withHistory=True):
+ useSummaryForDeletion=True, withHistory=False):
self.editSummary = editSummary
self.oldCat = pywikibot.Category(
pywikibot.Link('Category:' + oldCatTitle))
@@ -878,7 +879,7 @@
recurse = False
titleRegex = None
pagesonly = False
- withHistory = True
+ withHistory = False
# This factory is responsible for processing command line arguments
# that are also used by other scripts and that determine on which pages
@@ -950,7 +951,7 @@
elif arg == '-redirect':
follow_redirects = True
elif arg == '-hist':
- withHistory = True
+ withHistory = False
else:
genFactory.handleArg(arg)
pywikibot.Site().login()
--
To view, visit https://gerrit.wikimedia.org/r/106899
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I29161bd47ba0c3b22ba98c8becc92f98abe26614
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot