Merge pull request #90 from lovvvve/patch-2

fix: 🐛 db search
This commit is contained in:
pycook 2021-11-10 20:18:18 +08:00 committed by GitHub
commit c444fed436
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ class Search(object):
_query_sql = "" _query_sql = ""
if ":" in q: if ":" in q:
k = q.split(":")[0].strip() k = q.split(":")[0].strip()
v = ":".join(q.split(":")[1:]).strip() v = "\:".join(q.split(":")[1:]).strip()
current_app.logger.debug(v) current_app.logger.debug(v)
field, field_type, operator, attr = self._attr_name_proc(k) field, field_type, operator, attr = self._attr_name_proc(k)
if field == "_type": if field == "_type":