Merge branch 'develop' into enhancement/publisher_comment_minimum_required_chars

This commit is contained in:
Jakub Trllo 2025-05-30 10:20:23 +02:00 committed by GitHub
commit b62d8516b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View file

@ -462,8 +462,8 @@ class Anatomy(BaseAnatomy):
Union[Dict[str, str], None]): Local root overrides. Union[Dict[str, str], None]): Local root overrides.
""" """
if not project_name: if not project_name:
return return None
return ayon_api.get_project_roots_for_site( return ayon_api.get_project_root_overrides_by_site_id(
project_name, get_local_site_id() project_name, get_local_site_id()
) )

View file

@ -32,16 +32,16 @@ class CollectManagedStagingDir(pyblish.api.InstancePlugin):
label = "Collect Managed Staging Directory" label = "Collect Managed Staging Directory"
order = pyblish.api.CollectorOrder + 0.4990 order = pyblish.api.CollectorOrder + 0.4990
def process(self, instance): def process(self, instance: pyblish.api.Instance):
""" Collect the staging data and stores it to the instance. """ Collect the staging data and stores it to the instance.
Args: Args:
instance (object): The instance to inspect. instance (object): The instance to inspect.
""" """
staging_dir_path = get_instance_staging_dir(instance) staging_dir_path = get_instance_staging_dir(instance)
persistance = instance.data.get("stagingDir_persistent", False) persistence: bool = instance.data.get("stagingDir_persistent", False)
self.log.info(( self.log.debug(
f"Instance staging dir was set to `{staging_dir_path}` " f"Instance staging dir was set to `{staging_dir_path}` "
f"and persistence is set to `{persistance}`" f"and persistence is set to `{persistence}`"
)) )