Update session database with all session data
This commit is contained in:
@@ -223,10 +223,11 @@ class ActivityHandler(object):
|
|||||||
if this_key == last_key:
|
if this_key == last_key:
|
||||||
# Update the session state and viewOffset
|
# Update the session state and viewOffset
|
||||||
if this_state == 'playing':
|
if this_state == 'playing':
|
||||||
ap.set_session_state(session_key=self.get_session_key(),
|
# Update the session in our temp session table
|
||||||
state=this_state,
|
session = self.get_live_session()
|
||||||
view_offset=self.timeline['viewOffset'],
|
if session:
|
||||||
stopped=int(time.time()))
|
self.update_db_session(session=session)
|
||||||
|
|
||||||
# Start our state checks
|
# Start our state checks
|
||||||
if this_state != last_state:
|
if this_state != last_state:
|
||||||
if this_state == 'paused':
|
if this_state == 'paused':
|
||||||
|
Reference in New Issue
Block a user