From 3f04c69cb88167607b7db1bf4b36be1ced688f35 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 28 May 2022 01:50:33 +0200 Subject: [PATCH] fds --- files/helpers/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index 6de9c3ee9..7861ca3eb 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -55,7 +55,7 @@ def get_logged_in_user(): loggedin[v.id] = timestamp else: ua = str(user_agents.parse(g.agent)) - if not ua.startswith('Spider'): + if not ua.startswith('Spider') and 'bot' not in ua.lower(): loggedout[session["session_id"]] = (timestamp, ua) g.loggedin_counter = len([x for x in loggedin.values() if timestamp-x<15*60])