mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
fix 'get_versioning_start'
This commit is contained in:
parent
a90eb2d54a
commit
e32b54f911
1 changed files with 12 additions and 9 deletions
|
|
@ -1,15 +1,18 @@
|
|||
from __future__ import annotations
|
||||
from typing import Optional, Any
|
||||
|
||||
from ayon_core.lib.profiles_filtering import filter_profiles
|
||||
from ayon_core.settings import get_project_settings
|
||||
|
||||
|
||||
def get_versioning_start(
|
||||
project_name,
|
||||
host_name,
|
||||
task_name=None,
|
||||
task_type=None,
|
||||
product_type=None,
|
||||
product_name=None,
|
||||
project_settings=None,
|
||||
project_name: str,
|
||||
host_name: str,
|
||||
task_name: Optional[str] = None,
|
||||
task_type: Optional[str] = None,
|
||||
product_type: Optional[str] = None,
|
||||
product_name: Optional[str] = None,
|
||||
project_settings: Optional[dict[str, Any]] = None,
|
||||
):
|
||||
"""Get anatomy versioning start"""
|
||||
if not project_settings:
|
||||
|
|
@ -26,10 +29,10 @@ def get_versioning_start(
|
|||
# 'families' and 'subsets'
|
||||
filtering_criteria = {
|
||||
"host_names": host_name,
|
||||
"families": product_type,
|
||||
"product_types": product_type,
|
||||
"product_names": product_name,
|
||||
"task_names": task_name,
|
||||
"task_types": task_type,
|
||||
"subsets": product_name
|
||||
}
|
||||
profile = filter_profiles(profiles, filtering_criteria)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue