mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Cast view_offset to int for regrouping history
This commit is contained in:
parent
6010e406c8
commit
571a6b6d2d
1 changed files with 2 additions and 2 deletions
|
@ -519,12 +519,12 @@ class ActivityProcessor(object):
|
|||
if len(result) > 1:
|
||||
new_session = {'id': result[0]['id'],
|
||||
'rating_key': result[0]['rating_key'],
|
||||
'view_offset': result[0]['view_offset'],
|
||||
'view_offset': helpers.cast_to_int(result[0]['view_offset']),
|
||||
'reference_id': result[0]['reference_id']}
|
||||
|
||||
prev_session = {'id': result[1]['id'],
|
||||
'rating_key': result[1]['rating_key'],
|
||||
'view_offset': result[1]['view_offset'],
|
||||
'view_offset': helpers.cast_to_int(result[1]['view_offset']),
|
||||
'reference_id': result[1]['reference_id']}
|
||||
|
||||
if metadata:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue