Fix set value bug

This commit is contained in:
Martijn Alberts 2018-03-05 16:04:49 +01:00
parent c40f84d55d
commit 78dfb44739

View File

@ -43,7 +43,7 @@ def main():
data = json.load(data_file) data = json.load(data_file)
print data print data
user.store.prop(PR_EC_WEBACCESS_SETTINGS_JSON).set_value(json.dumps(data)) user.store.create_prop(PR_EC_WEBACCESS_SETTINGS_JSON, json.dumps(data))
if options.remove: if options.remove:
user.store.delete(user.store.prop('PR_EC_WEBACCESS_SETTINGS_JSON')) user.store.delete(user.store.prop('PR_EC_WEBACCESS_SETTINGS_JSON'))