mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -07:00
Add temporary watched state for sessions
This commit is contained in:
parent
8465df5095
commit
fcd7593764
3 changed files with 21 additions and 7 deletions
|
@ -540,3 +540,8 @@ class ActivityProcessor(object):
|
|||
session = self.get_session_by_key(session_key=session_key)
|
||||
self.db.action('UPDATE sessions SET write_attempts = ? WHERE session_key = ?',
|
||||
[session['write_attempts'] + 1, session_key])
|
||||
|
||||
def set_watched(self, session_key=None):
|
||||
self.db.action('UPDATE sessions SET watched = ?'
|
||||
'WHERE session_key = ?',
|
||||
[1, session_key])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue