mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Use helper function to cast play duration to int
This commit is contained in:
parent
0fa7553d97
commit
982c893c49
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ class DataFactory(object):
|
||||||
|
|
||||||
item['user_thumb'] = users_lookup.get(item['user_id'])
|
item['user_thumb'] = users_lookup.get(item['user_id'])
|
||||||
|
|
||||||
filter_duration += int(item['play_duration'])
|
filter_duration += helpers.cast_to_int(item['play_duration'])
|
||||||
|
|
||||||
if item['media_type'] == 'episode' and item['parent_thumb']:
|
if item['media_type'] == 'episode' and item['parent_thumb']:
|
||||||
thumb = item['parent_thumb']
|
thumb = item['parent_thumb']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue