From 53e96f9b4325c7487915ba409e3d45ef25ed4281 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 2 Aug 2023 03:28:33 +0300 Subject: [PATCH] dont do last_active in voting --- files/routes/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index 51b8d29aaf..97ae1c3d80 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -115,7 +115,7 @@ def get_logged_in_user(): # Check against last_active + ACTIVE_TIME to reduce frequency of # UPDATEs in exchange for a ±ACTIVE_TIME margin of error. - if not session.get("GLOBAL") and request.method == "POST": + if not session.get("GLOBAL") and request.method == "POST" and not request.path.startswith('/vote/'): timestamp = int(time.time()) if (v.last_active + LOGGEDIN_ACTIVE_TIME) < timestamp: v.last_active = timestamp