Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Return CHUNK_SIZE postcards in postcards-latest.json. #1

Merged
merged 1 commit into from

2 participants

@chromakode

Small bug fix for smooooother scrolling. Having an accurate chunk_size fixes my placeholder size estimates client-side.

@spladug spladug merged commit 4264329 into reddit:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 29, 2012
  1. @chromakode
This page is out of date. Refresh to see the latest.
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,
Something went wrong with that request. Please try again.