Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Return CHUNK_SIZE postcards in postcards-latest.json.

  • Loading branch information...
commit 7dd5e54fde6c0959d7738996d611e18b034cd937 1 parent 3d77baa
@chromakode chromakode authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  postcards/lib/utils.py
View
3  postcards/lib/utils.py
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.