forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-05-28 01:50:33 +02:00
parent b170b9b14a
commit 3f04c69cb8
1 changed files with 1 additions and 1 deletions

View File

@ -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])