Skip to content

Commit 853a581

Browse files
committed
Merge pull request rpcope1#1 from pramen/pramen-patch-1
Fixing bug in 2 methods
2 parents d2544c5 + 8e3da0c commit 853a581

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎PythonConfluenceAPI/api.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ def create_new_private_space(self, space_definition, callback=None):
574574

575575
def update_content_by_id(self, content_data, content_id, callback=None):
576576
assert isinstance(content_data, dict) and set(content_data.keys()) >= self.UPDATE_CONTENT_REQUIRED_KEYS
577-
return self._service_put_request("rest/api/content/{id}".format(content_id), data=json.dumps(content_data),
577+
return self._service_put_request("rest/api/content/{id}".format(id=content_id), data=json.dumps(content_data),
578578
headers={"Content-Type": "application/json"}, callback=callback)
579579

580580
def update_attachment_metadata(self, content_id, attachment_id, new_metadata, callback=None):
@@ -618,7 +618,7 @@ def delete_content_by_id(self, content_id, status=None, callback=None):
618618
params = {}
619619
if status:
620620
params["status"] = status
621-
return self._service_delete_request("rest/api/content/{id}".format(content_id), params=params,
621+
return self._service_delete_request("rest/api/content/{id}".format(id=content_id), params=params,
622622
callback=callback)
623623

624624
def delete_label_by_id(self, content_id, label_name, callback=None):
@@ -632,4 +632,4 @@ def delete_property(self, content_id, property_key, callback=None):
632632

633633
def delete_space(self, space_key, callback=None):
634634
return self._service_delete_request("rest/api/space/{key}".format(key=space_key),
635-
callback=callback)
635+
callback=callback)

0 commit comments

Comments
 (0)