from floof.lib.base import BaseController, render
from floof.lib.dbhelpers import find_or_create
from floof.lib import helpers as h
-from sqlalchemy import func
log = logging.getLogger(__name__)
# Do work!
if prefix:
- target_user = User.query.filter(func.lower(User.name) == tag_text) \
- .one()
+ target_user = User.get_by(name=tag_text)
# Special tag; at the moment, just a relationship
if prefix == 'by':