jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/337080 )
Change subject: Update content after editing entity ......................................................................
Update content after editing entity
Previously, only the latest revision id would be updated, so it would be necessary to force reloading the latest content from the wiki.
Change-Id: I92e0bf1fe854de4dd521b8801e64a8ce13ba2202 --- M pywikibot/page.py 1 file changed, 3 insertions(+), 0 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/pywikibot/page.py b/pywikibot/page.py index b77ba4a..023f32c 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -3837,6 +3837,9 @@ if lazy_loading_id or self.id == '-1': self.__init__(self.site, title=updates['entity']['id'])
+ self._content = updates['entity'] + self.get() + def editLabels(self, labels, **kwargs): """ Edit entity labels.
pywikibot-commits@lists.wikimedia.org