mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing bug in starred_stories where the second page is skipped.
This commit is contained in:
parent
9d2089e386
commit
68de3ea02c
2 changed files with 3 additions and 3 deletions
|
@ -432,8 +432,8 @@ def load_starred_stories(request):
|
|||
user = get_user(request)
|
||||
offset = int(request.REQUEST.get('offset', 0))
|
||||
limit = int(request.REQUEST.get('limit', 10))
|
||||
page = int(request.REQUEST.get('page', 0))
|
||||
if page: offset = limit * page
|
||||
page = int(request.REQUEST.get('page'))
|
||||
if page: offset = limit * (page - 1)
|
||||
|
||||
mstories = MStarredStory.objects(user_id=user.pk).order_by('-starred_date')[offset:offset+limit]
|
||||
stories = Feed.format_stories(mstories)
|
||||
|
|
|
@ -1746,7 +1746,7 @@
|
|||
this.switch_taskbar_view(this.story_view);
|
||||
this.setup_mousemove_on_views();
|
||||
|
||||
this.model.fetch_starred_stories(0, _.bind(this.post_open_starred_stories, this), true);
|
||||
this.model.fetch_starred_stories(1, _.bind(this.post_open_starred_stories, this), true);
|
||||
},
|
||||
|
||||
post_open_starred_stories: function(data, first_load) {
|
||||
|
|
Loading…
Add table
Reference in a new issue