diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-05 09:34:16 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-05 09:34:16 +0100 |
commit | ebbdac3a505b0f02d194a44780375699b987aaf6 (patch) | |
tree | d7067b802ffe569e5bb0b8bdf50c7715359bfb39 /lib | |
parent | 740ff820fe5d321f4ac17cc6a3bf87e623363052 (diff) |
JSON: {function,value}_error -> {function,value}Error
Diffstat (limited to 'lib')
-rw-r--r-- | lib/functions.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/functions.py b/lib/functions.py index da9ad48..52d110b 100644 --- a/lib/functions.py +++ b/lib/functions.py @@ -179,8 +179,8 @@ class ModelFunction: def to_json(self): ret = { "value": self.value, - "value_error": self.value_error, - "function_error": self.function_error, + "valueError": self.value_error, + "functionError": self.function_error, } return ret @@ -195,10 +195,10 @@ class ModelFunction: else: raise ValueError("Unknown ModelFunction type: " + data["type"]) - if "value_error" in data: - mf.value_error = data["value_error"] - if "function_error" in data: - mf.function_error = data["function_error"] + if "valueError" in data: + mf.value_error = data["valueError"] + if "functionError" in data: + mf.function_error = data["functionError"] return mf |