mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -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):
|
def bool_true(value):
|
||||||
if value is True:
|
if value is True or value == 1:
|
||||||
return True
|
return True
|
||||||
elif isinstance(value, basestring) and value.lower() in ('1', 'true', 't', 'yes', 'y', 'on'):
|
elif isinstance(value, basestring) and value.lower() in ('1', 'true', 't', 'yes', 'y', 'on'):
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue