mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 09:21:54 +02:00
lint
This commit is contained in:
parent
1aaafb205a
commit
b103a307e6
2 changed files with 6 additions and 4 deletions
|
@ -7,7 +7,6 @@ from django.core.validators import RegexValidator
|
|||
from registrar.models import (
|
||||
PortfolioInvitation,
|
||||
UserPortfolioPermission,
|
||||
UserPortfolioPermission,
|
||||
DomainInformation,
|
||||
Portfolio,
|
||||
SeniorOfficial,
|
||||
|
|
|
@ -89,9 +89,12 @@ def apply_search(data_list, request):
|
|||
data_list = [
|
||||
item
|
||||
for item in data_list
|
||||
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()
|
||||
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