Skip to content

Commit

Permalink
Merge pull request cloudflare#28 from crlorentzen/patch-2
Browse files Browse the repository at this point in the history
Fixed pagination of raw example, same as c842b04
  • Loading branch information
mahtin authored Aug 22, 2017
2 parents 5358208 + 6c86fef commit 9926050
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 9926050

Please sign in to comment.