Commit 2bdd3ef2 authored by kaiyou's avatar kaiyou

Fix a simple typo

parent 2c4b003f
......@@ -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 profile.count() > 1:
elif profiles.count() > 1:
utils.force_redirect(utils.url_for("profile.pick", **redirect_args))
else:
utils.force_redirect(utils.url_for("profile.create_quick", **redirect_args))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment