jenkins-bot has submitted this change and it was merged. Change subject: change 'lastrevid' to 'baserevid' in API calls ......................................................................
change 'lastrevid' to 'baserevid' in API calls Currently, Site.changeClaimTarget is throwing an API warning: "Unrecognized parameter: 'lastrevid'"; just changing four characters solve the issue. Also changed in editSource, as it already is in Site.removeClaims. Change-Id: Iaf8a1405694cb7367916a72f54e0b53ededdfe27 --- M pywikibot/site.py 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/site.py b/pywikibot/site.py index 8f8c217..11f9baa 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -3510,7 +3510,7 @@ if snaktype == 'value': params['value'] = json.dumps(claim._formatDataValue()) - params['lastrevid'] = claim.on_item.lastrevid + params['baserevid'] = claim.on_item.lastrevid req = api.Request(site=self, **params) data = req.submit() return data @@ -3557,7 +3557,7 @@ } params['snaks'] = json.dumps(snak) for arg in kwargs: - if arg in ['bot', 'lastrevid', 'summary']: + if arg in ['bot', 'baserevid', 'summary']: params[arg] = kwargs[arg] req = api.Request(site=self, **params) -- To view, visit https://gerrit.wikimedia.org/r/81484 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iaf8a1405694cb7367916a72f54e0b53ededdfe27 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Ricordisamoa <ricordisa...@live.it> Gerrit-Reviewer: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhall...@arctus.nl> Gerrit-Reviewer: Ricordisamoa <ricordisa...@live.it> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits