Commit 2737675c authored by ibuler's avatar ibuler

[Update] 修改配置文件判断

parent c4af6fa7
......@@ -282,6 +282,10 @@ class Config(dict):
if value is not None:
if value.isdigit():
value = int(value)
elif value.lower() == 'false':
value = False
elif value.lower() == 'true':
value = True
return value
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