From ef66c52aede0c4acf785a2c3704f064bed1eb9e9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 10 Aug 2023 19:05:19 +0300 Subject: [PATCH] last_active should change on voting and u know it --- 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 1186259bb..d3269dbb0 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -111,7 +111,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" and not request.path.startswith('/vote/'): + if not session.get("GLOBAL") and request.method == "POST": timestamp = int(time.time()) if (v.last_active + LOGGEDIN_ACTIVE_TIME) < timestamp: v.last_active = timestamp