Skip to content

Commit 7340b00

Browse files
committed
change: allow editor=v1 as a parameter of the create_page function
1 parent 694d799 commit 7340b00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atlassian/confluence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,8 @@ def create_page(
632632
}
633633
if parent_id:
634634
data["ancestors"] = [{"type": type, "id": parent_id}]
635-
if editor == "v2":
636-
data["metadata"] = {"properties": {"editor": {"value": "v2"}}}
635+
if editor is not None and editor in ["v1", "v2"]:
636+
data["metadata"] = {"properties": {"editor": {"value": editor}}}
637637
try:
638638
response = self.post(url, data=data)
639639
except HTTPError as e:

0 commit comments

Comments
 (0)