Skip to content
This repository was archived by the owner on May 25, 2020. It is now read-only.

Conversation

@brontide
Copy link

…n history

is preserved. Parent ID is automatically grabbed from the page so it is no
longer required and an optional comment can be added to the update. The code
has support for marking it a major update but I have not enabled a way to pass
it through from the command line.

…n history

is preserved.  Parent ID is automatically grabbed from the page so it is no
longer required and an optional comment can be added to the update.  The code
has support for marking it a major update but I have not enabled a way to pass
it through from the command line.
def update(self,content,parent_id=None, comment = None, minor = True):
self.logger.debug("Update page '{}'; label = [{}]".format(self.name, self.label))
page_update = self.get()
for key in page_update.keys():
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the array is being mutated while being iterated, I needed to clone it with a .copy() in there to avoid a runtime error:

for key in page_update.copy().keys():

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants