mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
add the version tags if there is not one
This commit is contained in:
parent
cf5d7d9a7d
commit
364dee88f1
1 changed files with 4 additions and 1 deletions
|
|
@ -198,11 +198,14 @@ class DeleteOldVersions(load.ProductLoaderPlugin):
|
|||
project_name = context["project"]["name"]
|
||||
anatomy = Anatomy(project_name, project_entity=context["project"])
|
||||
|
||||
version_fields = ayon_api.get_default_fields_for_type("version")
|
||||
version_fields.add("tags")
|
||||
versions = list(ayon_api.get_versions(
|
||||
project_name,
|
||||
product_ids=[product_entity["id"]],
|
||||
active=None,
|
||||
hero=False
|
||||
hero=False,
|
||||
fields=version_fields
|
||||
))
|
||||
self.log.debug(
|
||||
"Version Number ({})".format(len(versions))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue