Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

query.Search start argument ignored #200

Closed
llonchj opened this Issue · 3 comments

3 participants

@llonchj

Neither the repository or the 0.19.1 looks to paginate in the right way for me.

Code example: https://gist.github.com/3284284

What I am doing wrong?
Thanks

@rickcrawford

appears to be a bug in ResultSet - if you look at the iter function it resets start.

    def __iter__(self):
        self.iterpos = 0
        if self._current_item != 0:
            self._results = None
        self._current_item = 0

        self.start = 0
        return self

I worked around this by using a while loop with the next() for the time being.

            try:
                while True:
                    r = resp.next()
                    data.append(r)        
            except StopIteration:
                pass
@cailinanne

+1

See comment here: #151 (comment)

@rickcrawford - thanks for the workaround! Hadn't considered that.

@llonchj

Thanks for your help!

@llonchj llonchj closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.