Skip to content
Snippets Groups Projects
Commit 438b38f1 authored by kaiyou's avatar kaiyou
Browse files

Display profile.pick even for a single profile

parent 2bdd3ef2
Branches master
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ def get_profile(service, **redirect_args):
return active.filter_by(uuid=form.profile_uuid.data).first()
if active.count() == 1:
return active.one()
elif profiles.count() > 1:
elif profiles.count() > 0:
utils.force_redirect(utils.url_for("profile.pick", **redirect_args))
else:
utils.force_redirect(utils.url_for("profile.create_quick", **redirect_args))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment