From 0a4240050a551e9f4d0efe5b9a146d6da1756d89 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Thu, 7 Nov 2024 12:26:16 +0100 Subject: [PATCH] Refactored use of cls --- client/ayon_deadline/addon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/ayon_deadline/addon.py b/client/ayon_deadline/addon.py index 020754517b..e3c7c34fd1 100644 --- a/client/ayon_deadline/addon.py +++ b/client/ayon_deadline/addon.py @@ -85,7 +85,7 @@ def get_deadline_pools( """ endpoint = "{}/api/pools?NamesOnly=true".format(webservice_url) - return DeadlineAddon._get_deadline_info( + return cls._get_deadline_info( endpoint, auth, log, item_type="pools") @classmethod @@ -111,7 +111,7 @@ def get_deadline_groups( """ endpoint = "{}/api/groups".format(webservice_url) - return DeadlineAddon._get_deadline_info( + return cls._get_deadline_info( endpoint, auth, log, item_type="groups") @classmethod @@ -137,7 +137,7 @@ def get_deadline_limit_groups( """ endpoint = "{}/api/limitgroups?NamesOnly=true".format(webservice_url) - return DeadlineAddon._get_deadline_info( + return cls._get_deadline_info( endpoint, auth, log, item_type="limitgroups") @classmethod @@ -163,7 +163,7 @@ def get_deadline_workers( """ endpoint = "{}/api/slaves?NamesOnly=true".format(webservice_url) - return DeadlineAddon._get_deadline_info( + return cls._get_deadline_info( endpoint, auth, log, item_type="workers") @classmethod