 @bingjson = (req, res, next) ->
   res.set('Content-Disposition': 'attachment').write('[')
   getArtworkBuckets (err, buckets) ->
-    async.mapSeries buckets.reverse()[0..10], (bucket, callback) ->
+    async.mapSeries buckets.reverse(), (bucket, callback) ->
       iterator = (page, callback) ->
         request
           .get("#{FUSION_URL}/api/v1/artworks")

{ API_URL, POSITRON_URL, FUSION_URL, APP_URL } = require('sharify').data
artsyXapp = require 'artsy-xapp'
PAGE_SIZE = 100
FUSION_PAGE_SIZE = 1000

epoch = -> moment('2010 9 1', 'YYYY MM DD')
buckets = _.times moment().diff(epoch(), 'months'), (i) ->

            streamResults sres.body.results, res
            callback()
      async.timesSeries(bucket.pages + 1, iterator, callback)
    , ->
      res.write('{}]')
      res.end()

streamResults = (results, res) ->
  results.forEach (artwork) ->
