From 7105ca8d736f351738fcb391a213193d0f835a83 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Mon, 22 Jul 2024 13:36:13 +0200 Subject: [PATCH] Refactor method --- client/ayon_core/tools/loader/abstract.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/ayon_core/tools/loader/abstract.py b/client/ayon_core/tools/loader/abstract.py index e7e8488d05..dfc83cfc20 100644 --- a/client/ayon_core/tools/loader/abstract.py +++ b/client/ayon_core/tools/loader/abstract.py @@ -1019,8 +1019,11 @@ class FrontendLoaderController(_BaseLoaderController): pass @abstractmethod - def get_current_context_product_types_filter(self): - """Return product type filter for current context. + def get_product_types_filter(self, project_name): + """Return product type filter for project name (and current context). + + Args: + project_name (str): Project name. Returns: ProductTypesFilter: Product type filter for current context