mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 14:10:52 -07:00
Add value == 1 to helper.bool_true
This commit is contained in:
parent
6c84dd7be8
commit
02fd9edbbf
1 changed files with 1 additions and 1 deletions
|
@ -1261,7 +1261,7 @@ def mask_config_passwords(config):
|
|||
|
||||
|
||||
def bool_true(value):
|
||||
if value is True:
|
||||
if value is True or value == 1:
|
||||
return True
|
||||
elif isinstance(value, basestring) and value.lower() in ('1', 'true', 't', 'yes', 'y', 'on'):
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue