mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 07:22:37 -07:00
Set temporary session stop times on websocket disconnect
This commit is contained in:
parent
fd35295093
commit
d8cc76c7d7
2 changed files with 11 additions and 1 deletions
|
@ -466,4 +466,8 @@ class ActivityProcessor(object):
|
|||
'FROM sessions '
|
||||
'WHERE user_id = ? %s' % ip,
|
||||
[user_id])
|
||||
return sessions
|
||||
return sessions
|
||||
|
||||
def set_temp_stopped(self):
|
||||
stopped_time = int(time.time())
|
||||
monitor_db.action('UPDATE sessions SET stopped = ?', [stopped_time])
|
Loading…
Add table
Add a link
Reference in a new issue