Change from black linter

This commit is contained in:
Ivan Dromigny 2020-02-05 14:19:08 +01:00
commit d8d057711d
2 changed files with 13 additions and 5 deletions

View file

@ -284,8 +284,13 @@ class CognitoIdpResponse(BaseResponse):
user_pool_id, limit=limit, pagination_token=token
)
if filt:
name, value = filt.replace('"', '').split('=')
users = [user for user in users for attribute in user.attributes if attribute['Name'] == name and attribute['Value'] == value]
name, value = filt.replace('"', "").split("=")
users = [
user
for user in users
for attribute in user.attributes
if attribute["Name"] == name and attribute["Value"] == value
]
response = {"Users": [user.to_json(extended=True) for user in users]}
if token:
response["PaginationToken"] = str(token)