This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 02011598890804d60e55f9e8c5d54c801392ba1a Author: Daniel Gruno <[email protected]> AuthorDate: Sat Oct 16 23:30:01 2021 +0200 PEP8 linting --- server/plugins/defuzzer.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/server/plugins/defuzzer.py b/server/plugins/defuzzer.py index b6bce82..846fdeb 100644 --- a/server/plugins/defuzzer.py +++ b/server/plugins/defuzzer.py @@ -90,7 +90,9 @@ def defuzz(formdata: dict, nodate: bool = False, list_override: typing.Optional[ listname, fqdn = list_override.split("@", 1) assert fqdn, "You must specify a domain part of the mailing list(s) to search, or * for wildcard search." assert listname, "You must specify a list part of the mailing list(s) to search, or * for wildcard search." - assert '@' not in listname, "The list component of the List ID(s) cannot contain @, please use both list and domain keywords for searching." + assert ( + "@" not in listname + ), "The list component of the List ID(s) cannot contain @, please use both list and domain keywords for searching." list_raw = "<%s.%s>" % (listname, fqdn) # Default is to look in a specific list @@ -145,18 +147,15 @@ def defuzz(formdata: dict, nodate: bool = False, list_override: typing.Optional[ xshould.append( { "bool": { - "should": - [ - { - "multi_match": { - "fields": ["from", "body", "subject"], - "query": x, - "type": "phrase" - }, + "should": [ + { + "multi_match": { + "fields": ["from", "body", "subject"], + "query": x, + "type": "phrase", }, - - ] - + }, + ] } } )
