X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/065bd5b754cc6e6ea5da17e11a939f7a5b34da75..570a60f8364dbd148fbd7b903a4422acbba6dfbc:/floof/controllers/user_settings.py 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)