Fix advanced_injection data dump

This commit is contained in:
Martijn Alberts 2019-02-06 16:47:12 +01:00
parent 9176e06f15
commit b7714e5228

View File

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