Skip to content

Commit

Permalink
Fixed pagination of raw example, same as c842b04
Browse files Browse the repository at this point in the history
See comments on c842b04
  • Loading branch information
crlorentzen committed Jan 25, 2017
1 parent 5358208 commit 6c86fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ returning many items.
cf = CloudFlare.CloudFlare(raw=True)
page_number = 0
while True:
page_number += 1
raw_results = cf.zones.get(params={'per_page':5,'page':page_number})
zones = raw_results['result']
Expand All @@ -135,7 +136,6 @@ returning many items.
print zone_id, zone_name
total_pages = raw_results['result_info']['total_pages']
page_number += 1
if page_number == total_pages:
break
Expand Down

0 comments on commit 6c86fef

Please sign in to comment.