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
The following commit(s) were added to refs/heads/master by this push:
new 98920f4 PEP8 linting
98920f4 is described below
commit 98920f440124ec05072565fa12e9181abb09f60e
Author: Daniel Gruno <[email protected]>
AuthorDate: Sun Jun 6 12:48:45 2021 +0200
PEP8 linting
---
server/endpoints/stats.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/server/endpoints/stats.py b/server/endpoints/stats.py
index e8008ab..0664032 100644
--- a/server/endpoints/stats.py
+++ b/server/endpoints/stats.py
@@ -29,7 +29,9 @@ import aiohttp.web
PYPONY_RE_PREFIX = re.compile(r"^([a-zA-Z]+:\s*)+")
-async def process(server: plugins.server.BaseServer, session:
plugins.session.SessionObject, indata: dict,) -> typing.Union[dict,
aiohttp.web.Response]:
+async def process(
+ server: plugins.server.BaseServer, session: plugins.session.SessionObject,
indata: dict,
+) -> typing.Union[dict, aiohttp.web.Response]:
try:
query_defuzzed = plugins.defuzzer.defuzz(indata)
@@ -53,7 +55,7 @@ async def process(server: plugins.server.BaseServer, session:
plugins.session.Se
xlist = indata.get("list", "*")
xdomain = indata.get("domain", "*")
- all_authors = sorted(authors.items(), key=lambda x: x[1], reverse=True) #
sort in reverse by author count
+ all_authors = sorted(authors.items(), key=lambda x: x[1], reverse=True) #
sort in reverse by author count
top10_authors = []
for author, count in all_authors[:10]:
name, address = email.utils.parseaddr(author)