Skip to content

Commit

Permalink
fixing page counter updated when looping over fulfillment responses
Browse files Browse the repository at this point in the history
  • Loading branch information
traut committed Jul 3, 2015
1 parent b990f7b commit 0d08d8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cabby/client11.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,9 @@ def poll(self, collection_name, begin_date=None, end_date=None, count_only=False
for block in response.content_blocks:
yield to_content_block_entity(block)

part = response.result_part_number
while response.more:
part = response.result_part_number + 1
part += 1
for block in self.fulfilment(collection_name, response.result_id,
part_number=part, uri=uri):
yield block
Expand Down

0 comments on commit 0d08d8c

Please sign in to comment.