Add temporary watched state for sessions

This commit is contained in:
JonnyWong16 2018-04-04 22:05:30 -07:00
parent 8465df5095
commit fcd7593764
3 changed files with 21 additions and 7 deletions

View file

@ -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])