mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
More env variable testing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user