Commit 46c81d3b authored by ibuler's avatar ibuler

[Update] 修改config

parent 02104017
...@@ -322,10 +322,6 @@ class Config(dict): ...@@ -322,10 +322,6 @@ class Config(dict):
# 其次从环境变量来 # 其次从环境变量来
value = os.environ.get(item, None) value = os.environ.get(item, None)
if value is not None: if value is not None:
if value.lower() == 'false':
value = False
elif value.lower() == 'true':
value = True
return self.convert_type(item, value) return self.convert_type(item, value)
return self.defaults.get(item) return self.defaults.get(item)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment