forked from MarseyWorld/MarseyWorld
fds
parent
b170b9b14a
commit
3f04c69cb8
|
@ -55,7 +55,7 @@ def get_logged_in_user():
|
||||||
loggedin[v.id] = timestamp
|
loggedin[v.id] = timestamp
|
||||||
else:
|
else:
|
||||||
ua = str(user_agents.parse(g.agent))
|
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)
|
loggedout[session["session_id"]] = (timestamp, ua)
|
||||||
|
|
||||||
g.loggedin_counter = len([x for x in loggedin.values() if timestamp-x<15*60])
|
g.loggedin_counter = len([x for x in loggedin.values() if timestamp-x<15*60])
|
||||||
|
|
Loading…
Reference in New Issue