From 3b7aba7f636f2023973668d8455cffb77754717c Mon Sep 17 00:00:00 2001 From: Alexey Leshchenko Date: Tue, 23 Jul 2024 21:58:44 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=B2=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BA=D0=BE=D0=BF=D0=B8=D1=8E=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=8A=D0=B5=D0=BA=D1=82=D0=B0=20params=20=D0=B2=20UserRequestA?= =?UTF-8?q?bstract=20Fixes=20#238?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fast_bitrix24/user_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast_bitrix24/user_request.py b/fast_bitrix24/user_request.py index 0daa389..1b281c2 100644 --- a/fast_bitrix24/user_request.py +++ b/fast_bitrix24/user_request.py @@ -52,7 +52,7 @@ def __init__( # st_params будет использоваться для проверки параметров, # но на сервер должны уходить параметры без изменения регистра - self.params = params + self.params = params.copy() self.st_params = self.standardized_params(params) self.mute = mute From fde51d0ba71c76b7bb7053275fd421e0c762dfbc Mon Sep 17 00:00:00 2001 From: Alexey Leshchenko Date: Tue, 23 Jul 2024 22:01:14 +0300 Subject: [PATCH 2/2] Fix if params is None --- fast_bitrix24/user_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast_bitrix24/user_request.py b/fast_bitrix24/user_request.py index 1b281c2..67de81a 100644 --- a/fast_bitrix24/user_request.py +++ b/fast_bitrix24/user_request.py @@ -52,7 +52,7 @@ def __init__( # st_params будет использоваться для проверки параметров, # но на сервер должны уходить параметры без изменения регистра - self.params = params.copy() + self.params = params.copy() if params else {} self.st_params = self.standardized_params(params) self.mute = mute