Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1 from chromakode/master
Browse files Browse the repository at this point in the history
Return CHUNK_SIZE postcards in postcards-latest.json.
  • Loading branch information
spladug committed Apr 29, 2012
2 parents 3d77baa + 7dd5e54 commit 4264329
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions postcards/lib/utils.py
Expand Up @@ -178,9 +178,8 @@ def generate_jsonp():

# file containing latest postcards and an index mapping ids to chunks
data = dict(total_postcard_count=len(all_postcards),
chunk_id=chunk_id,
index=index,
postcards=chunk)
postcards=all_postcards[-CHUNK_SIZE:])
json_data = json.dumps(data)
upload_to_s3('postcards-latest.js',
'postcardCallback(%s)' % json_data,
Expand Down

0 comments on commit 4264329

Please sign in to comment.