mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: remove unused tool name assignment in tool and shared_tool modules
--bug=1061891 --user=刘瑞斌 【工具】从工具商店创建的工具,修改名称后添加还是显示的默认名称 https://www.tapd.cn/62980211/s/1774595
This commit is contained in:
parent
cf91734db5
commit
b3073c8aad
|
|
@ -840,7 +840,6 @@ class ToolSerializer(serializers.Serializer):
|
|||
)
|
||||
res = requests.get(self.data.get('download_url'), timeout=5)
|
||||
tool_data = RestrictedUnpickler(io.BytesIO(res.content)).load().tool
|
||||
tool.name = tool_data.get('name')
|
||||
tool.desc = tool_data.get('desc')
|
||||
tool.code = tool_data.get('code')
|
||||
tool.input_field_list = tool_data.get('input_field_list', [])
|
||||
|
|
|
|||
Loading…
Reference in New Issue