mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
rename 'is_include' to 'is_allow_list'
This commit is contained in:
parent
c75dbd6c4e
commit
9af0e6e1cd
2 changed files with 4 additions and 4 deletions
|
|
@ -349,9 +349,9 @@ class ProductTypesFilter:
|
|||
|
||||
Defines the filtering for product types.
|
||||
"""
|
||||
def __init__(self, product_types: List[str], is_include: bool):
|
||||
def __init__(self, product_types: List[str], is_allow_list: bool):
|
||||
self.product_types: List[str] = product_types
|
||||
self.is_include: bool = is_include
|
||||
self.is_allow_list: bool = is_allow_list
|
||||
|
||||
|
||||
class _BaseLoaderController(ABC):
|
||||
|
|
|
|||
|
|
@ -434,7 +434,7 @@ class LoaderController(BackendLoaderController, FrontendLoaderController):
|
|||
|
||||
def get_product_types_filter(self, project_name):
|
||||
output = ProductTypesFilter(
|
||||
is_include=False,
|
||||
is_allow_list=False,
|
||||
product_types=[]
|
||||
)
|
||||
# Without host is not determined context
|
||||
|
|
@ -479,7 +479,7 @@ class LoaderController(BackendLoaderController, FrontendLoaderController):
|
|||
)
|
||||
if profile:
|
||||
output = ProductTypesFilter(
|
||||
is_include=profile["is_include"],
|
||||
is_allow_list=profile["is_include"],
|
||||
product_types=profile["filter_product_types"]
|
||||
)
|
||||
return output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue