Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Re2o
Re2o API client
Commits
6565b92f
Commit
6565b92f
authored
Jun 27, 2018
by
jacomme
Browse files
Revert "fix list function to follow pages"
Stupid Charlie, stupid This reverts commit
61aba481
.
parent
61aba481
Changes
1
Hide whitespace changes
Inline
Side-by-side
re2oapi/client.py
View file @
6565b92f
...
...
@@ -480,7 +480,7 @@ class Re2oAPIClient:
results
=
response
[
'results'
]
# Get all next pages and append the results
while
res
ults
[
'next'
]
is
not
None
and
\
while
res
ponse
[
'next'
]
is
not
None
and
\
(
max_results
is
None
or
len
(
results
)
<
max_results
):
response
=
self
.
get
(
response
[
'next'
])
results
+=
response
[
'results'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment