From b7714e5228f251818b50f80defe84e99c80d19d5 Mon Sep 17 00:00:00 2001 From: Martijn Alberts Date: Wed, 6 Feb 2019 16:47:12 +0100 Subject: [PATCH] Fix advanced_injection data dump --- webapp_admin/webapp_admin.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/webapp_admin/webapp_admin.py b/webapp_admin/webapp_admin.py index 91af959..b0fd4f1 100755 --- a/webapp_admin/webapp_admin.py +++ b/webapp_admin/webapp_admin.py @@ -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,11 +369,9 @@ 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)) + """ Main function run with arguments """