From b8026ff0d444b4fb574a6c88ffe00f24fcb96488 Mon Sep 17 00:00:00 2001 From: Timur Date: Wed, 20 Dec 2023 01:43:20 +0300 Subject: [PATCH] =?UTF-8?q?=D1=87=D0=B8=D0=BD=D0=B8=D0=BA=20=D0=B0=D0=BD?= =?UTF-8?q?=D0=BB=D0=B8=D0=BD=D0=BA=20=D1=81=D1=83=D1=89=D0=BD=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- amocrm/v2/links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amocrm/v2/links.py b/amocrm/v2/links.py index 394c388..a032520 100644 --- a/amocrm/v2/links.py +++ b/amocrm/v2/links.py @@ -7,7 +7,7 @@ def link(self, for_entity, to_entity, main=False, metadata=None): return self._set("link", for_entity, to_entity, main=main, metadata=metadata) def unlink(self, for_entity, to_entity): - return self._set("link", for_entity, to_entity) + return self._set("unlink", for_entity, to_entity) def _set(self, direction, for_entity, to_entity, main=False, metadata=None): path = "{}/{}/{}".format(for_entity._path, for_entity.id, direction)