mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
fix search
This commit is contained in:
parent
b683bb1d45
commit
1aaafb205a
1 changed files with 3 additions and 3 deletions
|
@ -89,9 +89,9 @@ def apply_search(data_list, request):
|
|||
data_list = [
|
||||
item
|
||||
for item in data_list
|
||||
if search_term in item.get("first_name", "").lower()
|
||||
or search_term in item.get("last_name", "").lower()
|
||||
or search_term in item.get("email", "").lower()
|
||||
if item.get("first_name", "") and search_term in item.get("first_name", "").lower()
|
||||
or item.get("last_name", "") and search_term in item.get("last_name", "").lower()
|
||||
or item.get("email", "") and search_term in item.get("email", "").lower()
|
||||
]
|
||||
|
||||
return data_list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue