Skip to content

Commit

Permalink
put default in the function not in the blueprint to avoid redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
therealmarv committed Feb 13, 2017
1 parent 0c53249 commit c2a634e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pybossa/view/account.py
Expand Up @@ -58,13 +58,10 @@

mail_queue = Queue('email', connection=sentinel.master)

@blueprint.route('/')
def index_page_1():
"""Index page 1 for /account/ too"""
return index(1)

@blueprint.route('/')
@blueprint.route('/page/<int:page>')
def index(page):
def index(page=1):
"""Index page for all PYBOSSA registered users."""

update_feed = get_update_feed()
Expand Down

0 comments on commit c2a634e

Please sign in to comment.