From 3855f5ece9aef7cfb5fd2b806ea6abef64c12e90 Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Fri, 12 Aug 2016 13:29:59 -0700 Subject: [PATCH] Revert #600 --- eos/db/gamedata/queries.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eos/db/gamedata/queries.py b/eos/db/gamedata/queries.py index 32c0f766fa..5df10f3c5b 100644 --- a/eos/db/gamedata/queries.py +++ b/eos/db/gamedata/queries.py @@ -194,7 +194,8 @@ def searchItems(nameLike, where=None, join=None, eager=None): items = gamedata_session.query(Item).options(*processEager(eager)).join(*join) for token in nameLike.split(' '): token_safe = u"%{0}%".format(sqlizeString(token)) - items = items.filter(and_(Item.name.like(token_safe, escape="\\"), where)) + #items = items.filter(and_(Item.name.like(token_safe, escape="\\"), where)) + items = items.filter(processWhere(Item.name.like(token_safe, escape="\\"), where)) items = items.limit(100).all() return items