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 f5b7d82d68e3acbfc945f08a3fda4ac99c2d5407 Author: Daniel Gruno <[email protected]> AuthorDate: Mon Mar 29 14:52:02 2021 +0200 linting --- server/endpoints/mgmt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/endpoints/mgmt.py b/server/endpoints/mgmt.py index 0ae4adf..a4d8f81 100644 --- a/server/endpoints/mgmt.py +++ b/server/endpoints/mgmt.py @@ -25,6 +25,7 @@ import typing import aiohttp.web import time + async def process( server: plugins.server.BaseServer, session: plugins.session.SessionObject, @@ -66,5 +67,6 @@ async def process( delcount += 1 return aiohttp.web.Response(headers={}, status=200, text=f"Removed {delcount} emails from archives.") + def register(server: plugins.server.BaseServer): return plugins.server.Endpoint(process)
