mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-30 20:02:16 +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):
|
def get_bool(value):
|
||||||
if value == '1' or value == 'true':
|
print(type(value))
|
||||||
|
if value == '1' or value == 'true' or value == True:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user