jenkins-bot has submitted this change and it was merged.
Change subject: Add "!bot" to rcshow not rclimit ......................................................................
Add "!bot" to rcshow not rclimit
Change-Id: I15aa3f05aff6d91ca1989998f49d1adb48fb0e2d --- M wikipedia.py 1 file changed, 5 insertions(+), 4 deletions(-)
Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified
diff --git a/wikipedia.py b/wikipedia.py index 2f611fa..b27ddc5 100644 --- a/wikipedia.py +++ b/wikipedia.py @@ -8187,10 +8187,11 @@ 'sizes'], # , 'flags', 'redirect', 'patrolled'], 'rcnamespace': namespace, } - if nobots: - params['rclimit'] = str(number) + "!bot" - else: - params['rclimit'] = int(number) + params['rclimit'] = int(number) + if nobots and not rcshow: + rcshow = "!bot" + elif nobots and rcshow: + rcshow = rcshow + "|!bot" if user: params['rcuser'] = user if rcstart:
pywikibot-commits@lists.wikimedia.org