Skip to content

Commit b3073c8

Browse files
committed
refactor: remove unused tool name assignment in tool and shared_tool modules
--bug=1061891 --user=刘瑞斌 【工具】从工具商店创建的工具,修改名称后添加还是显示的默认名称 https://www.tapd.cn/62980211/s/1774595
1 parent cf91734 commit b3073c8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

apps/tools/serializers/tool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,6 @@ def update_tool(self, with_valid=True):
840840
)
841841
res = requests.get(self.data.get('download_url'), timeout=5)
842842
tool_data = RestrictedUnpickler(io.BytesIO(res.content)).load().tool
843-
tool.name = tool_data.get('name')
844843
tool.desc = tool_data.get('desc')
845844
tool.code = tool_data.get('code')
846845
tool.input_field_list = tool_data.get('input_field_list', [])

0 commit comments

Comments
 (0)