Skip to content

Commit

Permalink
[#2302] bugfix on config updating
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 3, 2012
1 parent 7775262 commit 101dd27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/app_globals.py
Expand Up @@ -74,8 +74,6 @@ def get_config_value(key, default=''):
if key not in _CONFIG_CACHE:
_CONFIG_CACHE[key] = config_value
if value:
# update the config
config[key] = value
log.info('config `%s` set to `%s` from db' % (key, value))
else:
value = _CONFIG_CACHE[key]
Expand All @@ -84,6 +82,8 @@ def get_config_value(key, default=''):
else:
value = default
setattr(app_globals, get_globals_key(key), value)
# update the config
config[key] = value
return value

# update the config settings in auto update
Expand Down

0 comments on commit 101dd27

Please sign in to comment.