use hierarchical property layers to make config changes effective

immediately
This commit is contained in:
Jakob Ketterl
2021-02-23 23:23:37 +01:00
parent 631232fe7c
commit dfaecdb357
9 changed files with 53 additions and 33 deletions

View File

@ -1,4 +1,5 @@
from abc import ABC, abstractmethod
from owrx.jsons import Encoder
import json
@ -68,7 +69,7 @@ class EnumConverter(Converter):
class JsonConverter(Converter):
def convert_to_form(self, value):
return json.dumps(value)
return json.dumps(value, cls=Encoder)
def convert_from_form(self, value):
return json.loads(value)