Fixed bool checks

This commit is contained in:
McCloudS authored and GitHub committed 2024-02-10 21:38:18 -07:00
1 parent bad2ec7e8b
commit c0e34bb42b
1 file changed
+1 -1
+1 -1
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')