Skip to content

Commit 29e6c65

Browse files
authored
Merge pull request #75 from jollychang/fix_get_page_child_by_type
fix get_page_child_by_type
2 parents 4ead5b6 + 84ed4a4 commit 29e6c65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

atlassian/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.10.1
1+
1.10.2

atlassian/confluence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_page_child_by_type(self, page_id, type='page', start=None, limit=None):
3434
:param page_id: A string containing the id of the type content container.
3535
:param type:
3636
:param start: OPTIONAL: The start point of the collection to return. Default: None (0).
37-
:param limit: OPTIONAL: how many items should be returned after the start index. Default: Site limit.
37+
:param limit: OPTIONAL: how many items should be returned after the start index. Default: Site limit 200.
3838
:return:
3939
"""
4040
params = {}
@@ -46,7 +46,7 @@ def get_page_child_by_type(self, page_id, type='page', start=None, limit=None):
4646
url = 'rest/api/content/{page_id}/child/{type}'.format(page_id=page_id, type=type)
4747
log.info(url)
4848
try:
49-
return self.get(url)
49+
return self.get(url, params=params).get('results')
5050
except IndexError as e:
5151
log.error(e)
5252
return None

0 commit comments

Comments
 (0)