Skip to content

Commit

Permalink
Merge pull request #111 from karik741/master
Browse files Browse the repository at this point in the history
чиник анлинк сущности
  • Loading branch information
Krukov authored Feb 21, 2024
2 parents 662b6a1 + b8026ff commit ee78a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amocrm/v2/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee78a60

Please sign in to comment.