Skip to content

Commit

Permalink
Booleans weren't being set correctly if upper case True was used. (#34)
Browse files Browse the repository at this point in the history
* Booleans weren't being set correctly if upper case True was used.

---------

Co-authored-by: Jesse Schmidt <[email protected]>
  • Loading branch information
arrowplum and Jesse Schmidt authored May 28, 2024
1 parent 1c5cf7b commit 638c050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prism-image-search/prism/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def get_bool_env(name, default):

env = env.lower()

if os.environ.get(name) in ["true", "1"]:
if env in ["true", "1"]:
return True
else:
return False
Expand Down
2 changes: 1 addition & 1 deletion quote-semantic-search/quote-search/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def get_bool_env(name, default):

env = env.lower()

if os.environ.get(name) in ["true", "1"]:
if env in ["true", "1"]:
return True
else:
return False
Expand Down

0 comments on commit 638c050

Please sign in to comment.