diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index 07857b7ba..7bab3a15b 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -61,7 +61,7 @@ def get_logged_in_user(): g.db.add(v) else: ua = str(user_agents.parse(g.agent)) - if not ua.startswith('Spider') and 'bot' not in ua.lower(): + if 'spider' not in ua.lower() 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 < LOGGEDIN_ACTIVE_TIME])