[bugfix] controller.py: Fix the bug, type error. that was unable to store the data correctly.
This commit is contained in:
@@ -1462,7 +1462,7 @@ class Controller:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def setSendMessageFormatParts(data, *args, **kwargs) -> dict:
|
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}
|
return {"status":200, "result":config.SEND_MESSAGE_FORMAT_PARTS}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@@ -1471,7 +1471,7 @@ class Controller:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def setReceivedMessageFormatParts(data, *args, **kwargs) -> dict:
|
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}
|
return {"status":200, "result":config.RECEIVED_MESSAGE_FORMAT_PARTS}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user