We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 496546c commit 643138fCopy full SHA for 643138f
src/wechaty/plugin.py
@@ -654,7 +654,7 @@ async def get_plugin_setting() -> Response:
654
return error(f'plugin<{name}> not exist ...')
655
plugin: WechatyPlugin = self._plugins[name]
656
657
- return success(plugin.setting)
+ return success(plugin.setting.to_dict())
658
659
@app.route('/plugins/setting', methods=['POST', 'PUT'])
660
async def update_plugin_setting() -> Response:
src/wechaty/utils/data_util.py
@@ -71,3 +71,7 @@ def __iter__(self) -> Iterator[_KT]:
71
def __len__(self) -> int:
72
"""get the length of dict data"""
73
return len(self._dict_data)
74
+
75
+ def to_dict(self) -> dict:
76
+ """get the source dict data"""
77
+ return self._dict_data
0 commit comments