Skip to content

Commit

Permalink
use json for own profile. Fixes #1342
Browse files Browse the repository at this point in the history
  • Loading branch information
therealmarv committed Jan 5, 2017
1 parent 51e5743 commit bb44d2a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pybossa/view/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,13 @@ def _show_own_profile(user):
projects_published, projects_draft = _get_user_projects(user.id)
cached_users.get_user_summary(user.name)

return render_template('account/profile.html', title=gettext("Profile"),
projects_contrib=projects_contributed,
projects_published=projects_published,
projects_draft=projects_draft,
user=user)
tmp = dict(template='account/profile.html', title=gettext("Profile"),
projects_contrib=projects_contributed,
projects_published=projects_published,
projects_draft=projects_draft,
user=user.name)

return handle_content_type(tmp)


@blueprint.route('/<name>/applications')
Expand Down

0 comments on commit bb44d2a

Please sign in to comment.