Fixing bug around skipping the 2nd page of feed stories due to an off by one error.

This commit is contained in:
Samuel Clay 2011-06-12 23:22:58 -04:00
parent 32bc324a02
commit a1feeeb13f
2 changed files with 2 additions and 2 deletions

View file

@ -432,7 +432,7 @@ def load_river_stories(request):
user = get_user(request) user = get_user(request)
feed_ids = [int(feed_id) for feed_id in request.REQUEST.getlist('feeds') if feed_id] feed_ids = [int(feed_id) for feed_id in request.REQUEST.getlist('feeds') if feed_id]
original_feed_ids = list(feed_ids) original_feed_ids = list(feed_ids)
page = int(request.REQUEST.get('page', 0))+1 page = int(request.REQUEST.get('page', 1))
read_stories_count = int(request.REQUEST.get('read_stories_count', 0)) read_stories_count = int(request.REQUEST.get('read_stories_count', 0))
bottom_delta = datetime.timedelta(days=settings.DAYS_OF_UNREAD) bottom_delta = datetime.timedelta(days=settings.DAYS_OF_UNREAD)

View file

@ -1807,7 +1807,7 @@
var feeds = this.list_feeds_with_unreads_in_folder($folder, false, true); var feeds = this.list_feeds_with_unreads_in_folder($folder, false, true);
this.cache['river_feeds_with_unreads'] = feeds; this.cache['river_feeds_with_unreads'] = feeds;
this.show_stories_progress_bar(feeds.length); this.show_stories_progress_bar(feeds.length);
this.model.fetch_river_stories(this.active_feed, feeds, 0, this.model.fetch_river_stories(this.active_feed, feeds, 1,
_.bind(this.post_open_river_stories, this), true); _.bind(this.post_open_river_stories, this), true);
}, },