Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add chunk id to json.

  • Loading branch information...
commit bf7b1c4f4c15b3b8ddf494bd2402222947d82dc3 1 parent cdfe54c
Neil Williams authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  postcards/lib/utils.py
2  postcards/lib/utils.py
View
@@ -171,6 +171,7 @@ def generate_jsonp():
all_postcards.append(data)
json_data = json.dumps(dict(total_postcard_count=total_postcard_count,
+ chunk_id=chunk_id,
postcards=postcards))
upload_to_s3('postcards%d.js' % chunk_id,
'postcardCallback%d(%s)' % (chunk_id, json_data),
@@ -183,6 +184,7 @@ def generate_jsonp():
data = dict(total_postcard_count=total_postcard_count,
+ chunk_id=newest_chunk,
postcards=all_postcards)
json_data = json.dumps(data)
upload_to_s3('postcards-all.js',
Please sign in to comment.
Something went wrong with that request. Please try again.