forked from rDrama/rDrama
tweak spider exclusion
parent
f8bf31a051
commit
0ee6566c21
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue