[bugfix] controller.py: Fix the bug, type error. that was unable to store the data correctly.

This commit is contained in:
Sakamoto Shiina
2025-08-26 17:20:29 +09:00
parent a79b87b17f
commit e6bd0e32ed

View File

@@ -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