From f88daa1e7737f26ec5c1b861f85a40b06e9555a9 Mon Sep 17 00:00:00 2001 From: Dimitri Huisman Date: Mon, 20 Dec 2021 21:07:25 +0000 Subject: [PATCH] Add missing cast to int --- core/admin/mailu/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/utils.py b/core/admin/mailu/utils.py index 5103f87e..4b556a96 100644 --- a/core/admin/mailu/utils.py +++ b/core/admin/mailu/utils.py @@ -357,7 +357,7 @@ class MailuSessionConfig: if now is None: now = int(time.time()) created = int.from_bytes(created, byteorder='big') - if not created <= now <= created + app.config['PERMANENT_SESSION_LIFETIME']: + if not created <= now <= created + int(app.config['PERMANENT_SESSION_LIFETIME']): return None return (uid, sid, crt)