X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/f263f51648eef9739caa92e19ec45b32d7a1e49e..ea3d7fcf702e372eac978d61b9af9dbad46543bb:/floof/controllers/user_settings.py?ds=sidebyside diff --git a/floof/controllers/user_settings.py b/floof/controllers/user_settings.py index 8d8adf0..de46e37 100644 --- a/floof/controllers/user_settings.py +++ b/floof/controllers/user_settings.py @@ -3,7 +3,6 @@ import logging import elixir from pylons import request, response, session, tmpl_context as c from pylons.controllers.util import abort, redirect_to -from sqlalchemy import func from sqlalchemy.orm.exc import NoResultFound import floof.lib.helpers as h @@ -22,7 +21,7 @@ class UserSettingsController(BaseController): `type`, and `add_remove` as parameters. """ try: - user = User.query.filter(func.lower(User.name) == name).one() + user = User.get_by(name=name) except NoResultFound: abort(404)