Skip to content

Commit f102a54

Browse files
committed
issue #76
1 parent 5ea6bba commit f102a54

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
---------
33

4+
1.0.3 (2015-02-03)
5+
++++++++++++++++++
6+
7+
- Fixed: `Issue #76 <https://github.com/maxtepkeev/python-redmine/issues/76>`__ (It was impossible
8+
to retrieve more than 100 resources for resources which don't support limit/offset natively by
9+
Redmine, i.e. this functionality is emulated by Python Redmine, e.g. WikiPage, Groups, Roles etc)
10+
411
1.0.2 (2014-11-13)
512
++++++++++++++++++
613

redmine/managers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def retrieve(self, **params):
9595
# doesn't support this feature on Redmine level
9696
else:
9797
total_count = len(response[self.container])
98-
results = response[self.container][offset:limit + offset]
98+
results = response[self.container][offset:None if self.params.get('limit', 0) == 0 else limit + offset]
9999
break
100100

101101
return results, total_count

0 commit comments

Comments
 (0)