mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Make sure query days is a string before splitting
This commit is contained in:
parent
5cc510616f
commit
e4bf0fb1c1
2 changed files with 2 additions and 2 deletions
|
@ -878,7 +878,7 @@ class Libraries(object):
|
||||||
grouping = plexpy.CONFIG.GROUP_HISTORY_TABLES
|
grouping = plexpy.CONFIG.GROUP_HISTORY_TABLES
|
||||||
|
|
||||||
if query_days and query_days is not None:
|
if query_days and query_days is not None:
|
||||||
query_days = map(helpers.cast_to_int, query_days.split(','))
|
query_days = map(helpers.cast_to_int, str(query_days).split(','))
|
||||||
else:
|
else:
|
||||||
query_days = [1, 7, 30, 0]
|
query_days = [1, 7, 30, 0]
|
||||||
|
|
||||||
|
|
|
@ -487,7 +487,7 @@ class Users(object):
|
||||||
grouping = plexpy.CONFIG.GROUP_HISTORY_TABLES
|
grouping = plexpy.CONFIG.GROUP_HISTORY_TABLES
|
||||||
|
|
||||||
if query_days and query_days is not None:
|
if query_days and query_days is not None:
|
||||||
query_days = map(helpers.cast_to_int, query_days.split(','))
|
query_days = map(helpers.cast_to_int, str(query_days).split(','))
|
||||||
else:
|
else:
|
||||||
query_days = [1, 7, 30, 0]
|
query_days = [1, 7, 30, 0]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue