From a04add0de41b2ecb723aa6131eea4489d363b825 Mon Sep 17 00:00:00 2001 From: vk-fin <164896132+vk-fin@users.noreply.github.com> Date: Mon, 1 Jul 2024 15:38:34 -0300 Subject: [PATCH 1/2] Remove check for method name without "dot" separator There are valid methods like "methods" and "scope" that do not have a "dot" separator within their name. According to the documentation and a "methods" call, there are 5 such methods: ['batch', 'scope', 'methods', 'events', 'profile'] --- bitrix24/bitrix24.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitrix24/bitrix24.py b/bitrix24/bitrix24.py index 588c462..f8e5a27 100644 --- a/bitrix24/bitrix24.py +++ b/bitrix24/bitrix24.py @@ -150,7 +150,7 @@ def callMethod(self, method: str, params: Dict[str, Any] = {}, **kwargs) -> Dict ------- Returning the REST method response as an array, an object or a scalar """ - if not method or len(method.split(".")) < 2: + if not method: raise BitrixError("Wrong method name", 400) try: From e389d1bf4340719e67074123ff3976077b716cb8 Mon Sep 17 00:00:00 2001 From: vk-fin <164896132+vk-fin@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:45:25 -0300 Subject: [PATCH 2/2] Bump version number to 2.0.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cf642ff..e3f0895 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name="bitrix24-rest", - version="2.0.0", + version="2.0.1", packages=find_packages(), install_requires=[ "aiohttp",