1
0
Fork 0
mirror of https://github.com/koniu/recoll-webui.git synced 2025-10-03 17:59:50 +02:00

py: fix settings type-casting from defaults

This commit is contained in:
koniu 2012-12-22 13:38:32 +00:00
parent be52e0f69d
commit c588606aed

View file

@ -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():
try:
value = type(v)(bottle.request.get_cookie(k))
except:
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']: