X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/f263f51648eef9739caa92e19ec45b32d7a1e49e..fe7afb91d071aaf21034561840588e82425f3d8a:/floof/controllers/user_settings.py?ds=inline 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)