Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seagullbird committed Dec 16, 2016
1 parent 54175ec commit 2c3215f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api_1_0/blogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def get_blogs():
blogs = pagination.items
prev = None
if pagination.has_prev:
prev = url_for('api.get_blogs', page=page - 1, _external=True)
prev = url_for('api.get_blogs', page=page - 1, _external=True, _scheme="https")
next = None
if pagination.has_next:
next = url_for('api.get_blogs', page=page + 1, _external=True)
next = url_for('api.get_blogs', page=page + 1, _external=True, _scheme="https")
return jsonify({
'blogs': [blog.to_json() for blog in blogs],
'prev': prev,
Expand Down

0 comments on commit 2c3215f

Please sign in to comment.