mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 14:10:52 -07:00
Fix for usage of wrong view offset field when serializing to session_history
Also add code to update view offset in sessions table more often
This commit is contained in:
parent
f1b3a6f7b6
commit
af3944734f
2 changed files with 8 additions and 1 deletions
|
@ -156,10 +156,11 @@ class ActivityProcessor(object):
|
|||
# Reload json from raw stream info
|
||||
if session.get('raw_stream_info'):
|
||||
raw_stream_info = json.loads(session['raw_stream_info'])
|
||||
# Don't overwrite id, session_key, stopped
|
||||
# Don't overwrite id, session_key, stopped, view_offset
|
||||
raw_stream_info.pop('id', None)
|
||||
raw_stream_info.pop('session_key', None)
|
||||
raw_stream_info.pop('stopped', None)
|
||||
raw_stream_info.pop('view_offset', None)
|
||||
session.update(raw_stream_info)
|
||||
|
||||
session = defaultdict(str, session)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue