From 638c0500f398b3f892cc98c28630796138613485 Mon Sep 17 00:00:00 2001 From: Joe M Date: Tue, 28 May 2024 10:33:46 -0700 Subject: [PATCH] Booleans weren't being set correctly if upper case True was used. (#34) * Booleans weren't being set correctly if upper case True was used. --------- Co-authored-by: Jesse Schmidt --- prism-image-search/prism/config.py | 2 +- quote-semantic-search/quote-search/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prism-image-search/prism/config.py b/prism-image-search/prism/config.py index bd0ca9e..2dd4b53 100644 --- a/prism-image-search/prism/config.py +++ b/prism-image-search/prism/config.py @@ -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 diff --git a/quote-semantic-search/quote-search/config.py b/quote-semantic-search/quote-search/config.py index fbb3992..7f5d8c4 100644 --- a/quote-semantic-search/quote-search/config.py +++ b/quote-semantic-search/quote-search/config.py @@ -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