mirror of
https://github.com/simple-login/app.git
synced 2024-11-11 01:42:54 +08:00
use alias name when searching
This commit is contained in:
parent
2f00294ba3
commit
c74857c7e7
1 changed files with 5 additions and 1 deletions
|
@ -146,7 +146,11 @@ def get_alias_infos_with_pagination_v2(
|
|||
|
||||
if query:
|
||||
q = q.filter(
|
||||
or_(Alias.email.ilike(f"%{query}%"), Alias.note.ilike(f"%{query}%"))
|
||||
or_(
|
||||
Alias.email.ilike(f"%{query}%"),
|
||||
Alias.note.ilike(f"%{query}%"),
|
||||
Alias.name.ilike(f"%{query}%"),
|
||||
)
|
||||
)
|
||||
|
||||
if alias_filter == "enabled":
|
||||
|
|
Loading…
Reference in a new issue