From 3b1f0cb626247c70707a15c1152623fab9f4c933 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Thu, 21 Mar 2024 08:12:57 -0600 Subject: [PATCH] Add 'y' and 'yes' as bool options --- subgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgen.py b/subgen.py index ee3aeb7..b6e3e66 100644 --- a/subgen.py +++ b/subgen.py @@ -27,7 +27,7 @@ import re def convert_to_bool(in_bool): # Convert the input to string and lower case, then check against true values - return str(in_bool).lower() in ('true', 'on', '1') + return str(in_bool).lower() in ('true', 'on', '1', 'y', 'yes') # Replace your getenv calls with appropriate default values here plextoken = os.getenv('PLEXTOKEN', 'token here')