Commit c588606a authored by koniu's avatar koniu
Browse files

py: fix settings type-casting from defaults

parent be52e0f6
......@@ -112,11 +112,8 @@ def get_config():
config['dirs'] = shlex.split(rc['main']['topdirs'])
# get config from cookies or defaults
for k, v in DEFAULTS.items():
value = type(v)(bottle.request.get_cookie(k))
value = v
config[k] = value
value = select([bottle.request.get_cookie(k), v])
config[k] = type(v)(value)
# get mountpoints
config['mounts'] = {}
for d in config['dirs']:
Supports Markdown
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