Upgraded the Relay module - it supports multiple relays now.
This commit is contained in:
@@ -91,7 +91,7 @@ class DictionarySettingType(SettingType):
|
||||
|
||||
def set_value(self, value):
|
||||
if not value:
|
||||
self._set_raw_value("")
|
||||
self._set_raw_value("{}")
|
||||
elif isinstance(value, dict):
|
||||
self._set_raw_value(json.dumps(value))
|
||||
else:
|
||||
@@ -102,7 +102,7 @@ class DictionarySettingType(SettingType):
|
||||
if value:
|
||||
return DictObject(json.loads(value))
|
||||
else:
|
||||
return value
|
||||
return {}
|
||||
|
||||
def get_display_value(self):
|
||||
return f"<highlight>{self.get_value() or '<empty>'}</highlight>"
|
||||
|
||||
Reference in New Issue
Block a user