Commit 5dbc6f7e authored by Michael Cook's avatar Michael Cook

handle paginated results that are only one page

parent 52d66482
...@@ -30,7 +30,7 @@ func pagination() { ...@@ -30,7 +30,7 @@ func pagination() {
} }
// Exit the loop when we've seen all pages. // Exit the loop when we've seen all pages.
if opt.Page >= resp.TotalPages { if resp.CurrentPage >= resp.TotalPages {
break break
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment