[bugfix] controller.py: Fix the bug, type error. that was unable to store the data correctly.
This commit is contained in:
1 parent
a79b87b17f
commit
e6bd0e32ed
1 file changed
+2
-2
@@ -1462,7 +1462,7 @@ class Controller:
|
||||
|
||||
@staticmethod
|
||||
def setSendMessageFormatParts(data, *args, **kwargs) -> dict:
|
||||
config.SEND_MESSAGE_FORMAT_PARTS = str(data)
|
||||
config.SEND_MESSAGE_FORMAT_PARTS = dict(data)
|
||||
return {"status":200, "result":config.SEND_MESSAGE_FORMAT_PARTS}
|
||||
|
||||
@staticmethod
|
||||
@@ -1471,7 +1471,7 @@ class Controller:
|
||||
|
||||
@staticmethod
|
||||
def setReceivedMessageFormatParts(data, *args, **kwargs) -> dict:
|
||||
config.RECEIVED_MESSAGE_FORMAT_PARTS = str(data)
|
||||
config.RECEIVED_MESSAGE_FORMAT_PARTS = dict(data)
|
||||
return {"status":200, "result":config.RECEIVED_MESSAGE_FORMAT_PARTS}
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in new issue
Block a user