diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index d01f4be6f47ca133ddf55de8a583af9a802e7926..d2f0a9583037a2678356a61dc51b680aaa299532 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -53,6 +53,9 @@ * [2014-05-02] Quickfix for [#38](https://github.com/mwclient/mwclient/issues/38) (by [@danmichaelo](https://github.com/danmichaelo)) [98b850b](https://github.com/mwclient/mwclient/commit/98b850b) +* [2014-06-13] Fix updating of Page.last_rev_time upon save(), [#41](https://github.com/mwclient/mwclient/issues/41) + (by [@tuffnatty](https://github.com/tuffnatty)) + [d0cc7db](https://github.com/mwclient/mwclient/commit/d0cc7db) ## Changes in version 0.6.5 Mwclient 0.6.5 was released on 6 May 2011 diff --git a/mwclient/page.py b/mwclient/page.py index 0e5a1c9b5e69fd8c21b740b2f54b2dd43788f96f..336bfc19dc6599b66077e02c03a42faf590320d6 100644 --- a/mwclient/page.py +++ b/mwclient/page.py @@ -201,8 +201,8 @@ class Page(object): else: self.handle_edit_error(e, summary) - if result['edit'] == 'Success': - self.last_rev_time = client.parse_timestamp(result['newtimestamp']) + if result['edit'].get('result') == 'Success': + self.last_rev_time = client.parse_timestamp(result['edit'].get('newtimestamp')) return result['edit'] def handle_edit_error(self, e, summary):