Fix advanced_injection data dump
This commit is contained in:
parent
9176e06f15
commit
b7714e5228
@ -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,11 +369,9 @@ 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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Main function run with arguments
|
Main function run with arguments
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user