File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 77 path ('workspace/<str:workspace_id>/tool' , views .ToolView .as_view ()),
88 path ('workspace/<str:workspace_id>/tool/import' , views .ToolView .Import .as_view ()),
99 path ('workspace/<str:workspace_id>/tool/pylint' , views .ToolView .Pylint .as_view ()),
10+ path ('workspace/<str:workspace_id>/tool/debug' , views .ToolView .Debug .as_view ()),
1011 path ('workspace/<str:workspace_id>/tool/<str:tool_id>' , views .ToolView .Operate .as_view ()),
11- path ('workspace/<str:workspace_id>/tool/<str:tool_id>/debug' , views .ToolView .Debug .as_view ()),
12- path ('workspace/<str:workspace_id>/tool/<str:tool_id>/edit_icon' , views .ToolView .Debug .as_view ()),
12+ path ('workspace/<str:workspace_id>/tool/<str:tool_id>/edit_icon' , views .ToolView .EditIcon .as_view ()),
1313 path ('workspace/<str:workspace_id>/tool/<str:tool_id>/export' , views .ToolView .Export .as_view ()),
1414 path ('workspace/<str:workspace_id>/tool/<int:current_page>/<int:page_size>' , views .ToolView .Page .as_view ()),
1515]
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ class Debug(APIView):
6060 tags = [_ ('Tool' )] # type: ignore
6161 )
6262 @has_permissions (PermissionConstants .TOOL_DEBUG .get_workspace_permission ())
63- def post (self , request : Request , workspace_id : str , tool_id : str ):
63+ def post (self , request : Request , workspace_id : str ):
6464 return result .success (ToolSerializer .Debug (
65- data = {'tool_id ' : tool_id , 'workspace_id ' : workspace_id }
65+ data = {'workspace_id ' : workspace_id , 'user_id ' : request . user . id }
6666 ).debug (request .data ))
6767
6868 class Operate (APIView ):
You can’t perform that action at this time.
0 commit comments