Skip to content

Commit 8b7ec89

Browse files
author
Marcin Dębski
committed
Fixed condition within the group_id in list_group_properties
1 parent 779e068 commit 8b7ec89

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

livechat/customer/web/api/v33.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def list_group_properties(self,
635635
params['namespace'] = namespace
636636
if name:
637637
params['name'] = name
638-
if group_id != None:
638+
if group_id is not None:
639639
params['id'] = str(group_id)
640640
params['license_id'] = self.license_id
641641
return self.session.get(f'{self.api_url}/list_group_properties',

livechat/customer/web/api/v34.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def list_group_properties(self,
635635
params['namespace'] = namespace
636636
if name:
637637
params['name'] = name
638-
if group_id != None:
638+
if group_id is not None:
639639
params['id'] = str(group_id)
640640
params['organization_id'] = self.organization_id
641641
return self.session.get(f'{self.api_url}/list_group_properties',

livechat/customer/web/api/v35.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def list_group_properties(self,
635635
params['namespace'] = namespace
636636
if name:
637637
params['name'] = name
638-
if group_id != None:
638+
if group_id is not None:
639639
params['id'] = str(group_id)
640640
params['organization_id'] = self.organization_id
641641
return self.session.get(f'{self.api_url}/list_group_properties',

0 commit comments

Comments
 (0)