Skip to content

Commit 840fa68

Browse files
committed
fix: rename parameter in put method for clarity
1 parent e0bfe0c commit 840fa68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/tools/views/tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ class EditIcon(APIView):
238238
tags=[_('Tool')] # type: ignore
239239
)
240240
@has_permissions(PermissionConstants.TOOL_EDIT.get_workspace_permission())
241-
def put(self, request: Request, id: str, workspace_id: str):
241+
def put(self, request: Request, tool_id: str, workspace_id: str):
242242
return result.success(ToolSerializer.IconOperate(data={
243-
'id': id,
243+
'id': tool_id,
244244
'workspace_id': workspace_id,
245245
'user_id': request.user.id,
246246
'image': request.FILES.get('file')

0 commit comments

Comments
 (0)