Merge pull request #78 from simple-login/fix-query
use case-insensitive query when searching for alias
This commit is contained in:
commit
421f69b681
|
@ -180,7 +180,9 @@ def get_alias_info(
|
||||||
)
|
)
|
||||||
|
|
||||||
if query:
|
if query:
|
||||||
q = q.filter(or_(GenEmail.email.contains(query), GenEmail.note.contains(query)))
|
q = q.filter(
|
||||||
|
or_(GenEmail.email.ilike(f"%{query}%"), GenEmail.note.ilike(f"%{query}%"))
|
||||||
|
)
|
||||||
|
|
||||||
# pagination activated
|
# pagination activated
|
||||||
if page_id is not None:
|
if page_id is not None:
|
||||||
|
|
Loading…
Reference in a new issue