Merge pull request #3 in KSC/webapp-tools from malberts/webapp_adminpy-1549468162466 to master

* commit 'b7714e5228f251818b50f80defe84e99c80d19d5':
  Fix advanced_injection data dump
This commit is contained in:
Robin van Genderen 2019-02-06 16:47:55 +01:00
commit c05cb253fd

View File

@ -357,7 +357,6 @@ Inject webapp settings into the users store
:param user: The user :param user: The user
:param data: The webapp setting :param data: The webapp setting
:param removed: Remove old setting and write new setting :param removed: Remove old setting and write new setting
:return: The new settings
""" """
def advanced_inject(user, data, removed=None): def advanced_inject(user, data, removed=None):
settings = read_settings(user) settings = read_settings(user)
@ -370,9 +369,7 @@ def advanced_inject(user, data, removed=None):
else: else:
dot[split_data[0].rstrip()] = value dot[split_data[0].rstrip()] = value
new_data = dot.to_dict() new_data = dot.to_dict()
write_settings(user, json.dumps(new_settings)) write_settings(user, json.dumps(new_data))
return new_settings
""" """