Skip to content

Commit 2b5f07a

Browse files
committed
fixed ex_app_is_disabled [ci skip]
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent 2d20a86 commit 2b5f07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nc_py_api/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ def ex_app_is_disabled(self, app_id: str) -> bool:
109109
"""Returns ``True`` if specified external application is disabled."""
110110
if not app_id:
111111
raise ValueError("`app_id` parameter can not be empty")
112-
return app_id in [i.app_id for i in self.ex_app_get_list(True) if not i.enabled]
112+
return app_id not in [i.app_id for i in self.ex_app_get_list(True)]

0 commit comments

Comments
 (0)