Fixed bool checks

This commit is contained in:
McCloudS
2024-02-10 21:38:18 -07:00
committed by GitHub
parent bad2ec7e8b
commit c0e34bb42b

View File

@@ -25,7 +25,7 @@ def convert_to_bool(in_bool):
return in_bool
else:
value = str(in_bool).lower()
return value not in ('false', 'off', '0')
return value not in ('false', 'off', '0', 0)
# Replace your getenv calls with appropriate default values here
plextoken = os.getenv('PLEXTOKEN', 'token here')