Skip to content

Commit

Permalink
Fixed bool checks
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Feb 11, 2024
1 parent bad2ec7 commit c0e34bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subgen/subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit c0e34bb

Please sign in to comment.