From e753c26605d7b914baf414404da40f84f531fe48 Mon Sep 17 00:00:00 2001 From: maaa Date: Sat, 8 Jul 2023 21:26:03 +0200 Subject: [PATCH] fart --- main | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main b/main index 2f2b34c..b5f2f3c 100644 --- a/main +++ b/main @@ -275,11 +275,8 @@ def login(): conn.commit() conn.close() - expire_date = datetime.datetime.now - expire_date = expire_date + datetime.timedelta(days=365) - resp = make_response(redirect("/")) - resp.set_cookie("session_DO_NOT_SHARE", randomCharacters, expires=expire_date) + resp.set_cookie("session_DO_NOT_SHARE", randomCharacters, expires=datetime.datetime.now() + datetime.timedelta(days=float(180))) return resp else: