From 7b5e9fd5f70d62a665c0c307780c7f93a9c2a049 Mon Sep 17 00:00:00 2001 From: Aaron Lee Date: Sun, 26 Dec 2021 21:38:25 +0800 Subject: [PATCH] Set login timeout to 12 hours --- functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.py b/functions.py index dd9f39a..2c5ec06 100644 --- a/functions.py +++ b/functions.py @@ -77,7 +77,7 @@ def next_item(odic, key): def check_login_status(): return ('is_logged_in' not in session or session['is_logged_in'] == False or - (datetime.now(tz) - session['loginTime']).total_seconds() > 3600) + (datetime.now(tz) - session['loginTime']).total_seconds() > 43200) def send_email(to, subject, text): return requests.post(