forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2023-12-04 17:25:26 +02:00
parent 3cc64a44af
commit 510da6c97a
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ def calc_users():
if session["session_id"] in loggedout: del loggedout[session["session_id"]]
loggedin[v.id] = timestamp
else:
g.agent = request.headers.get("User-Agent", "")
ua = str(user_agents.parse(g.agent))
if 'spider' not in ua.lower() and 'bot' not in ua.lower():
loggedout[session["session_id"]] = (timestamp, ua)