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

Commit

Permalink
Return CHUNK_SIZE postcards in postcards-latest.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Apr 29, 2012
1 parent 3d77baa commit 7dd5e54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions postcards/lib/utils.py
Original file line number Diff line number Diff line change
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 7dd5e54

Please sign in to comment.