You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/10/06 23:15:16 UTC
[incubator-ponymail-foal] branch master updated: Classic PonyMail
returns unixtime
This is an automated email from the ASF dual-hosted git repository.
sebb 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 d76bd78 Classic PonyMail returns unixtime
d76bd78 is described below
commit d76bd783eea18bde1cb938810640ed6ed7677eb3
Author: Sebb <se...@apache.org>
AuthorDate: Thu Oct 7 00:15:02 2021 +0100
Classic PonyMail returns unixtime
---
server/endpoints/stats.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server/endpoints/stats.py b/server/endpoints/stats.py
index 35eb615..8151985 100644
--- a/server/endpoints/stats.py
+++ b/server/endpoints/stats.py
@@ -26,6 +26,7 @@ import re
import email.utils
import typing
import aiohttp.web
+import time
PYPONY_RE_PREFIX = re.compile(r"^([a-zA-Z]+:\s*)+")
@@ -83,6 +84,7 @@ async def process(
"name": xlist,
"list": f"{xlist}@{xdomain}",
"searchParams": indata,
+ "unixtime": int(time.time()),
}