Skip to content

Commit

Permalink
Merge branch 'main' into optimize-deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowplum committed May 31, 2024
2 parents 2efa04d + 638c050 commit f29e047
Show file tree
Hide file tree
Showing 2 changed files with 4 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
4 changes: 3 additions & 1 deletion quote-semantic-search/quote-search/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@

def get_bool_env(name, default):
env = os.environ.get(name)

if env is None:
return default
env = env.lower()

env = env.lower()

if env in ["true", "1"]:
return True
Expand Down

0 comments on commit f29e047

Please sign in to comment.