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 591b10e  last_accesss needs an int
591b10e is described below

commit 591b10ec5f88edc7c78f308b4bf0a5c2b5c9fbfd
Author: Sebb <[email protected]>
AuthorDate: Sat Sep 25 11:11:00 2021 +0100

    last_accesss needs an int
---
 server/plugins/session.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/plugins/session.py b/server/plugins/session.py
index f196c7e..4b2cbc2 100644
--- a/server/plugins/session.py
+++ b/server/plugins/session.py
@@ -190,7 +190,7 @@ async def set_session(server: plugins.server.BaseServer, 
cid, **credentials):
     cookie: http.cookies.SimpleCookie = http.cookies.SimpleCookie()
     cookie["ponymail"] = session_id
     session = SessionObject(
-        server, last_accessed=time.time(), cookie=session_id, cid=cid
+        server, last_accessed=int(time.time()), cookie=session_id, cid=cid
     )
     session.credentials = SessionCredentials(credentials)
     server.data.sessions[session_id] = session

Reply via email to