More env variable testing

This commit is contained in:
2021-01-24 18:47:31 +00:00
parent ba19e02061
commit fa27d54f01

View File

@@ -25,7 +25,8 @@ SECRET_KEY = os.environ.get('SECRET_KEY') if os.environ.get(
def get_bool(value):
if value == '1' or value == 'true':
print(type(value))
if value == '1' or value == 'true' or value == True:
return True
else:
return False