Skip to content

Instantly share code, notes, and snippets.

@Erreon
Created February 22, 2010 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Erreon/310942 to your computer and use it in GitHub Desktop.
Save Erreon/310942 to your computer and use it in GitHub Desktop.
if listing_count > 100
listings = []
limit = 100
begin
listing_chunk = shop.get_shop_listings(username, :offset => listings.length, :limit => limit).results
listings += listing_chunk
end while listing_chunk.length >= limit
else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment